复制表结构

各位大哥,要建一个表tab1表的临时表#tabtmp.该如何写?多谢~

---------------------------------------------------------------

select * into #tabtmp from tabl where 1=2
如果要记录就把条件去掉
---------------------------------------------------------------

up 可以选择条件的建立临时表

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus