13518219792

建站动态

根据您的个性需求进行定制 先人一步 抢占小程序红利时代

创新互联OceanBase教程:OceanBaseRENAMETABLE

描述

该语句用来对一个或多个表进行重命名。

创新互联科技有限公司专业互联网基础服务商,为您提供德阳机房服务器托管高防服务器租用,成都IDC机房托管,成都主机托管等互联网服务。

格式

RENAME TABLE tblname TO newtblname 
     [, tb1name2 TO newtblname …];

参数解释

参数

描述

tblname

原表名。

newtblname

新表名。

tblname TO newtblname

[, tb1name2 TO newtblname …];

多个表重命名时,使用“,”隔开。

注意事项

示例

  1. 创建表 t1 和 t2。

create table t1(c1 int);

create table t2(c1 int);
  1. 将表 t1 重命名为 t11。

rename table t1 to t11;
  1. 将表 t11 重命名为 t111,表 t2 重命名为 t22。

rename table t11 to t111, t2 to t22;
  1. 将表 t111 重命名为 t1111 后,再将表 t1111重命名为 t1。

rename table t111 to t1111, t1111 to t1;

当前名称:创新互联OceanBase教程:OceanBaseRENAMETABLE
网站链接:http://cdbrznjsb.com/article/ccscdco.html

其他资讯

让你的专属顾问为你服务