一次写入多行

insert into tb(a,b,c)
select 'a','b','c' union all
select 'd','e','f' union all
select 'x','y','z'

insert into tableName (列名1,列名2,列名3,列名4) 
values 
(值1,值2, 值3, 值4),
(值1,值2, 值3, 值4),
(值1,值2, 值3, 值4)

猜你喜欢

转载自www.cnblogs.com/ghelement/p/9713088.html