Oracle参考A表新建B表

--复制表结构和数据,但不会创建索引
create table B as select * from A;

--只复制表结构
create table B as select * from A where 1=2;

--复制数据的SQL已写入其他文章,搜索关键字Oracle Insert就可找到

发表回复

您的电子邮箱地址不会被公开。

4 × 2 =