现在的位置: 首页 > 综合 > 正文

ACCESS和DBF、EXCEL、CSV的数据库插入查询方法

2013年10月10日 ⁄ 综合 ⁄ 共 327字 ⁄ 字号 评论关闭

ACCESS---->EXCEL
SELECT * into tmp in 'c:/tmp/bbb.xls' 'excel 8.0;'  from Table1;

 

EXCEL---->ACCESS
insert into Table1
select * from [sheet1$] in 'c:/tmp/aaa.xls' 'excel 8.0;'

DBF---->ACCESS
insert into Table1
select * from P9 in 'C:/tmp/' 'dbase 5.0;'
(源文件是:C:/tmp/P9.DBF)

 

 

CSV--->ACCESS

insert into tel
SELECT *
FROM [Text;database=C:/tmp].p5.csv

(源文件是:C:/tmp/P5.csv)

抱歉!评论已关闭.