重庆思庄Oracle、Redhat认证学习论坛

标题: oracle表复制 [打印本页]

作者: jiawang    时间: 2020-3-13 15:06
标题: oracle表复制
1. 复制表结构及其数据:
create table table_name_new as select * from table_name_old

2. 只复制表结构:
create table table_name_new as select * from table_name_old where 1=2;
或者:
create table table_name_new like table_name_old








欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2