在SQL Server中,SQL语句的Insert支持一次插入多条记录

SQL Server 2000/2005

可以使用union all

 

create table #(a int,b int)

 

insert into #(a,b)

select 1,2

union all select 2,3

union all select 3,4

 

select * from #

http://zhidao.baidu.com/question/46528326.html

posted @ 2010-10-07 11:43  emanlee  阅读(597)  评论(0编辑  收藏  举报