使用一条insert批量插入多条数据记录。
使用方法为:
INSERT INTO [表名]([列名],[列名]) VALUES ([列值],[列值])), ([列值],[列值])), ([列值],[列值]));
示例:
INSERT INTO cmf_zichan_logs(goods_id,goods_logs,user,date) VALUES ('502','资产入库','xx','2018-08-09'), ('522','资产入库','xx','2018-08-09'), ('523','资产入库','xx','2018-08-09'), ('524','资产入库','xx','2018-08-09'), ('525','资产入库','xx','2018-08-09'), ('526','资产入库','xx','2018-08-09');
结果:
……….
> Affected rows: 6
> 时间: 0.05s