Access insert 多条记录
SQL 语句:
Insert into 进货 ([商品ID],[进价],[数量],[日期],[结存进货],[结存ID]) (Select [商品ID],[进货成本] as 进价,[进货数量] as 数量, %f as 日期,true as 结存进货,%d from 结存单 where [结存ID] = %0:d and [剩余库存] > 0)
运行出错
Insert into 进货 ([商品ID],[进价],[数量],[日期],[结存进货],[结存ID]) Select [商品ID],[进货成本] as 进价,[进货数量] as 数量, %f as 日期,true as 结存进货,%d from 结存单 where [结存ID] = %0:d and [剩余库存] > 0
运行正确
两都区别是红色标记区