日期:2014-05-17  浏览次数:20413 次

简单sql疑问
select * into a from (select * from b) as temp where 1=0

想复制一个b表的表结构,上面的写法是不是会先查出b表的所有数据再判断1=0呢?

------解决方案--------------------
直接select * into #a from b where 1=0
------解决方案--------------------
SQL code


--复制表结构
select * into a from b where 1=0

------解决方案--------------------
探讨
直接select * into #a from b where 1=0

------解决方案--------------------
我在二楼的回复呢?

SQL code

-复制表结构直接执行
select * into a from b where 1=0