create table 使用select查询语句创建表的方法分享

时间:2023-03-09 08:56:45
create table 使用select查询语句创建表的方法分享

转自:http://www.maomao365.com/?p=6642

摘要:
下文讲述使用select查询语句建立新的数据表的方法分享

---1 mysql
create table `新数据表名`
select * from `旧数据表名`;
--------------------------------
---2 oracle
create table 新数据表名 as select * from 旧数据表名
--------------------------------
--3 mssql
select * into [新数据表名] from [旧数据表名]