小編給大家分享一下oracle中怎么修改表名,希望大家閱讀完這篇文章后大所收獲,下面讓我們一起去探討吧!
oracle如何修改表名
方式一
alter table old_table_name rename to new_table_name;
這是最簡單的(個人認(rèn)為)
方式二:
select tname from tab;(查詢的是數(shù)據(jù)庫中所有的表名) rename old_table_name to new_table_name;
rename只能修改自己schema下面的表
方式三
create table new_table_name as select * from old_table_name;
相當(dāng)于再復(fù)制成一張新表
drop table old_table_name; 刪除舊表
方式四
直接在PLSQL developer里面改。
看完了這篇文章,相信你對oracle中怎么修改表名有了一定的了解,想了解更多相關(guān)知識,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,感謝各位的閱讀!