oracle中修改表名的幾種方式
answer1:
ALTER TABLE old_table_name RENAME TO new_table_name;(大寫為系統(tǒng)命令)
answer2:
SQL> select tname from tab ;
TNAME
------------------------------
TEST
SQL> rename test to temp ;
Table renamed.
SQL> select tname from tab ;
TNAME
------------------------------
TEMP
rename只能修改自己schema下面的表。
answer3:
create new_table as select * from old_table;drop table old_table;
answer4:
直接在PLSQL Developer里面改
相關文章
Oracle中dbms_output.put_line的用法實例
最近寫了oracle過程,有個ORACLE中dbms_output.put_line的相關問題,所以下面這篇文章主要給大家介紹了關于Oracle中dbms_output.put_line的用法實例,需要的朋友可以參考下2022-06-06oracle數(shù)據(jù)庫中sql%notfound的用法詳解
SQL%NOTFOUND 是一個布爾值。下面通過本文給大家分享oracle數(shù)據(jù)庫中sql%notfound的用法,需要的的朋友參考下吧2017-06-06