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

Posted lairui1232000

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 [旧数据表名]

 

以上是关于create table 使用select查询语句创建表的方法分享的主要内容,如果未能解决你的问题,请参考以下文章