2006/01/24 | 不同数据库的表互相插入数据
类别(数据库学习笔记) | 评论(0) | 阅读(191) | 发表于 11:10
//从外数据库插入到本数据库表中
//追加式
INSERT INTO tbl_bbb
SELECT *
FROM tbl_aaa IN 'C:\a b c d\AAA.mdb';

//覆盖式
SELECT * INTO bbb
FROM tbl_aaa IN 'C:\AAA.mdb';

//本数据库查询外数据库内容
SELECT * FROM tbl_aaa IN 'C:\AAA.mdb';

//由本数据库插入到外数据库表中数据
SELECT * INTO tbl_aaa in "C:\BBB.mdb"
FROM tbl_aaa

insert INTO tbl_aaa (xm,xb) IN 'C:\BBB.mdb' select xm,xb FROM tbl_aaa;



0

评论Comments