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?
相关文章
- mybatis oracle两种方式批量插入数据
- Access数据导入SQLServer2008R2
- 第五篇 :微信公众平台开发实战Java版之如何获取公众号的access_token以及缓存access_token
- Navicat 提示 Access violation at address ***(如004ECCF4) in module ‘navicat.exe’. Read of address ***(如00000048)
- Access数据库及注入方法
- access数据库的连接字符串以及数据库操作类
- Access数据库远程连接的实用方法
- php连接Access数据库错误及解决方法
- 浅谈PHP+Access数据库的连接 注意要点
- Access数据库的连接字符串