热门文章 | 热门软件| 热门源码 | 热门电影 | 知识库 | 联系我们
软件 源码 教程 影视 健康 招聘
  HTML | JavaScript | ASP | PHP | JSP | NET | VB | VC | VF | Windows | Linux | Mysql | Mssql | Oracle | Struts 
当前位置: 创世纪计算机资源网 -> 文章频道 ->vb 
站内搜索:
关于select复制表的问题
作者:佚名 来源:互联网 整理日期:2008-4-10
把一个表的结构复制到另一个表的语句是什么?忘记了


select * into table2 from table1


隻復制表結構 應該這樣 select * into 新表 from 舊表 where 1<>1


select * into newtable from oldtable where 1<>1


的确,
select * into table2 from table1
这是复制数据和结构。
如果光是表结构的话,常用的有
select * into table2 from table1  Where 1<>1
或者
select * into table2 from table1  Where 1=2


select * into table2 from table1 where 1<>1
相关文章