向数据库同时添加多条记录的SQL语句

真头疼...

mssql:

 

insert into tablefortest(a,b) 
select 1,2
union
select 3,4
union
select 5,6

 

 

mysql:

 

insert into tablefortest(a,b)values(1,2) ,(3,4) ,(5,6
posted @ 2009-01-21 11:30  梦梦龙龙  阅读(1187)  评论(0)    收藏  举报