怎样把别的数据库中的表导入到我的数据库中
菜鸟问题
我们想把别人数据库中的一张表的数据导入到我的数据库中 我的数据库中已经有这张表了
我有不想把整个数据库进行备份输入 该怎么办那
问题点数:20、回复次数:4Top
1 楼Hopewell_Go(好的在后頭﹗希望更好﹗﹗)回复于 2005-05-03 15:40:32 得分 8
insert into newdatabase.dbo.newtable
select * from olddatabase.dbo.oldtableTop
2 楼drk928(一起看斜阳)回复于 2005-05-03 17:43:08 得分 2
导过来先取个别名.然后再用SQL插入.Top
3 楼wanttoknow2001(风)回复于 2005-05-04 09:37:16 得分 0
怎么插啊Top
4 楼talantlee(小刀(bluedagger.cn))回复于 2005-05-04 10:04:16 得分 10
1.insert into newtable(字段名)
select 字段名 from olddatabase.dbo.oldtable--你的原表所在數據庫+表名Top




