小编给大家分享一下oracle中怎么修改表名,希望大家阅读完这篇文章后大所收获,下面让我们一起去探讨吧!oracle如何修改表名方式一alter table old_table_name
小编给大家分享一下oracle中怎么修改表名,希望大家阅读完这篇文章后大所收获,下面让我们一起去探讨吧!
oracle如何修改表名
方式一
alter table old_table_name rename to new_table_name;
这是最简单的(个人认为)
方式二:
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中怎么修改表名有了一定的了解,想了解更多相关知识,欢迎关注编程网数据库频道,感谢各位的阅读!
--结束END--
本文标题: oracle中怎么修改表名
本文链接: https://www.lsjlt.com/news/53737.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-14
2024-05-14
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0