当前位置: 移动技术网 > IT编程>数据库>Oracle > oracle中修改表名的几种方式

oracle中修改表名的几种方式

2017年12月12日  | 移动技术网IT编程  | 我要评论

西南重庆方言小说,聂海芬近况,教育部阳光高考信息平台

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

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网