欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2023-11-06 12:58:40
转自:http://www.maomao365.com/?p=6642 摘要:下文讲述使用select查询语句建立新的数据表的方法分享 ......


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

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