您的位置 首页 技术

oracle如何修改表名

oracle如何修改表名 方式一 alter table old_table_name rename to new_table_name; 这是最简单的(个人认为) 方式二: 推荐…

oracle如何修改表名

方式一

alter table old_table_name rename to new_table_name;

这是最简单的(个人认为)

方式二:

推荐:《SQL教程》

select tname from tab;(查询的是数据库中所有的表名)rename old_table_name to new_table_name;

rename只能修改自己schema下面的表

方式三

create  table new_table_name as select * from old_table_name;

相当于再复制成一张新表

drop table old_table_name; 删除旧表

方式四

直接在PLSQL developer里面改。

更多oracle方面的教程,请关注PHP中文网!

以上就是oracle如何修改表名的详细内容,更多请关注24课堂在线网其它相关文章!

本文来自网络,不代表24小时课堂在线立场,转载请注明出处:https://www.24ketang.cn/45259.html

为您推荐

返回顶部