sql - 批量插入数据

时间:2014-07-13 19:58:40   收藏:0   阅读:232
insert into t (c1, c2, c3) values (1, 1, 1), (2, 2, 2)
insert into t (c1, c2, c3) (select a1, a2, a3) union all (select b1, b2, b3)

 

insert into t (c1, c2, c3) (select a1, a2, a3 from t2)

 

sql - 批量插入数据,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!