sql - 批量插入数据
时间:2014-07-13 19:58:40
收藏:0
阅读:232
- 直接构造
insert into t (c1, c2, c3) values (1, 1, 1), (2, 2, 2)
- 使用UNION
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)
评论(0)