--两种批量添加方法
--只有08版可用
INSERT INTO [SQ_IndentPlaceOrder]([PiId],[MatchCode],[Number],[BoxNumber],[SupplyPriceBreak],[IoId])
VALUES(12,'111',2,2,1,1),(12,'111',2,2,1,1)
--批量添加不重复数据
INSERT INTO [SQ_IndentPlaceOrder]
([PiId],[MatchCode],[Number],[BoxNumber],[SupplyPriceBreak],[IoId])
select 12,'111',2,1,1,1 union
select 12,'111',2,2,1,1 union
select 12,'111',2,3,1,1
两种简单的SQL批量插入语句
最新推荐文章于 2025-03-21 10:26:31 发布