当前位置:Gxlcms > 数据库问题 > oracle,根据查询结果结构创建新表

oracle,根据查询结果结构创建新表

时间:2021-07-01 10:21:17 帮助过:14人阅读

oracle的写法与sql server不一样,老是只记得sql server的写法,记不住oracle的。

现在专门记录一下。

create table newtablename
as select * from tablename where rownum<0;

---上面只复制了结构没有数据,想要有数据,把where条件移去即可。

oracle,根据查询结果结构创建新表

标签:where   server   acl   rownum   ble   new   sel   creat   结果   

人气教程排行