ACCESS批量插入
Posted Z上善若水
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ACCESS批量插入相关的知识,希望对你有一定的参考价值。
Insert INTO 目标表(id,供应商名称,供应商地址) Select DISTINCTROW * FROM (Select 1 AS ID,"天鸣1" AS 供应商名称,"广东中山" AS 供应商地址 FROM MSysObjects UNION Select 2 AS ID,"天鸣2" AS 供应商名称,"广东中山" AS 供应商地址 FROM MSysObjects UNION Select 3 AS ID,"天鸣3" AS 供应商名称,"广东中山" AS 供应商地址 FROM MSysObjects UNION Select 4 AS ID,"天鸣4" AS 供应商名称,"广东中山" AS 供应商地址 FROM MSysObjects) AS tblTemp;
Note: But the Row will be mutil when the inserting row only one. The repeat number will be reflect by the table MSysObjects.
Anybody know it‘s why?
以上是关于ACCESS批量插入的主要内容,如果未能解决你的问题,请参考以下文章