求將access的資料庫中的表中的資料匯出成sql語

時間 2021-07-18 07:44:03

1樓:匿名使用者

將access的資料庫中的表中的資料匯出成sql語句?手工寫insert 語句太麻煩了?啥意思?

到底要做啥,你是要匯出access的資料到哪?匯入到access,還是從access道出?

如何將一個資料庫表中的'部分'資料轉到另一個資料庫的表

2樓:du瓶邪

insert into tableb..bb(b1,b2,b3) select a1,a2,a3 from tablea..aa

insert into 資料庫1.a(id,name...)select id,name...from 資料庫2.b

insert into tableb(b1,b2,b3) select a1,a2,a3 from[wjjj].[dbo].[fbase]

insert into tableb(b1,b2,b3) select a1,a2,a3 from[資料庫2名].[dbo].[表]

例項:create database testa

use testa

create table tablea

(id int primary key identity(1,1) not null,

username varchar(50) not null,

pwd varchar(50) not null,

age int not null

)create database testb

use testb

create table tableb

(id int primary key identity(1,1) not null,

ageb int not null,

pass varchar(50) not null

)insert into tableb(ageb,pass) select age,pwd from testa.dbo.tablea

insert into tablea(age,pwd) select ageb,pass from testb.dbo.tableb

3樓:我愛素手輕揚

如果是access的話.直接開啟資料庫,複製過去.

4樓:己聞楣

update b

set d = a.b

from a a, b b

where b.a = a.a

5樓:

沒看懂,錯誤字太多了。

access資料庫中求自動運算功能

fm網路 有一個表是銷售明細表,裡面有數量 單價 金額,想讓金額自動生成 金額 數量 單價 做一個 查詢檢視即可,檢視中新增 金額 數量 單價。今後讀取資料的時候,直接讀取檢視即可。access資料庫中如何自動計算某一個欄位的值? 用查詢就可以了.建一個查詢,選擇那個表,雙擊aa,bb,這兩個欄位就...

vb操作access資料庫,如何判斷表中是否存在某欄位

1.加個adodc空間 2.這個空間的資料來源連結到access 3.令 adodc1.recordsource select from table where 欄位 xx table是你的表名,xx是你要查詢的內容 adodc1.refresh if adodc1.recordset.record...

vb在access資料庫中如何建立新表

private sub command1 click dim cn as new provider data source 資料庫名。mdb select into table2 from table1 where false end sub 如果在複製表結構的同時也複製資料,那麼就。private...