oracle修改表名的方法

2025-05-29 17:51:30

1、方式一:alter table old_table_name rename to new_table_name;这是最简单的(个人认为)

2、方式二:select tname from tab;猾诮沓靥(查询的是数据库中所有的表名) rename old_table_name to new_table_name; rename飧肇苡卫只能修改自己schema下面的表

3、方式三:create table new_table娄多骋能_name as select * from old_table_name;相当于再复制成一张新表 drop table old_table忧溲枷茫_name; 删除旧表

4、方式四:直接在PLSQL developer里面改。

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢