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

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

现在专门记录一下。

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

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

原文地址:https://www.cnblogs.com/luqingfei/p/14660876.html