oracle怎么修改表名

2023年 4月 16日 59.1k 0

oracle怎么修改表名 方式一: alter table old_table_name rename to new_table_name; 这是最简单的(个人认为) 方式二: select tname from tab;(查询的是数据库中所有的表名)rename old_table_name to new_table

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教程》

以上就是oracle怎么修改表名的详细内容,更多请关注每日运维其它相关文章!

相关文章

Oracle如何使用授予和撤销权限的语法和示例
Awesome Project: 探索 MatrixOrigin 云原生分布式数据库
下载丨66页PDF,云和恩墨技术通讯(2024年7月刊)
社区版oceanbase安装
Oracle 导出CSV工具-sqluldr2
ETL数据集成丨快速将MySQL数据迁移至Doris数据库

发布评论