oracle中修改表名的几种方式

前端之家收集整理的这篇文章主要介绍了oracle中修改表名的几种方式前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

answer1:

ALTER TABLE old_table_name RENAME TO new_table_name;(大写为系统命令)

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里面改

原文链接:https://www.f2er.com/oracle/65298.html

猜你在找的Oracle相关文章