发布于 2016-04-01 09:34:54 | 159 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的精品教程,程序狗速度看过来!

Oracle关系数据库管理系统

Oracle Database,又名Oracle RDBMS,或简称Oracle。是甲骨文公司的一款关系数据库管理系统。到目前仍在数据库市场上占有主要份额。


这篇文章主要介绍了oracle中修改表名的几种方式,需要的朋友可以参考下

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



最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务