1、
update table1 set b=table2.b from table2 where table1.a=table2.a
2、如何通过SQL语句来把一个表的结构拷贝成为另外一个新表?select top 0 * into 新表 from 表
update table1 set b=table2.b from table2 where table1.a=table2.a
2、如何通过SQL语句来把一个表的结构拷贝成为另外一个新表?select top 0 * into 新表 from 表
update table1 set b=table2.b from table2 where table2.a=table1.a2:
select top 0 * into 新表 from 表
或
select * into 新表 from 表 where 1=2
如果大量数据的话,哪一条的效率高一些?