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批量插入的主要内容,如果未能解决你的问题,请参考以下文章

C# 通过C#代码向Access数据库批量插入数据

批量插入后选择在 MS access 数据库中不起作用

C# 调用Adodb对Access数据库执行批量插入

如何往neo4j中批量插入cypher语句

在asp.net中如何对oracle数据库执行批量插入数据?

为啥批量插入/更新更快?批量更新如何工作?