insert into [数据库名].dbo.[表A] select * from 表B 或 insert into [表A] select * from [数据库名].dbo表B
比较简单: insert into [数据库名].dbo.[表A] select * from [数据库名].dbo.表B
1、"[拥有者名]",DBO,即数据库对象所有者; 2、如采用ACCESS数据库,[数据库名]是代表全路径的数据库名;如采用SQL SERVER数据库,[数据库名]可以直接是数据库名称。 3、语句“insert into [数据库名].dbo.[表A] select * from 表B” 是你的QUERY的连接数据库为表B所在的数据库的情况下用的; 4、语句“insert into [表A] select * from [数据库名].dbo表B” 是你的QUERY的连接数据库为表A所在的数据库的情况下用的;
同意。
我建议用BatchMove控件。
insert into [数据库名].dbo.[表A] select * from 表B
或
insert into [表A] select * from [数据库名].dbo表B
insert into [数据库名].dbo.[表A] select * from [数据库名].dbo.表B
2、如采用ACCESS数据库,[数据库名]是代表全路径的数据库名;如采用SQL SERVER数据库,[数据库名]可以直接是数据库名称。
3、语句“insert into [数据库名].dbo.[表A] select * from 表B”
是你的QUERY的连接数据库为表B所在的数据库的情况下用的;
4、语句“insert into [表A] select * from [数据库名].dbo表B”
是你的QUERY的连接数据库为表A所在的数据库的情况下用的;