如何在MS SQL Server 2012中使用Marge数据库 [英] How to Marge database in MS SQL Server 2012
本文介绍了如何在MS SQL Server 2012中使用Marge数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有很多数据库并且具有相同的表
I have many databases and have the same table
推荐答案
请阅读此处的文档:使用MERGE插入,更新和删除数据 [ ^ ]
要访问其他数据库中的表,请使用该表的全名:
Read the documentation here : Inserting, Updating, and Deleting Data by Using MERGE[^]
To access tables in other databases use the full name for that table :
select * from databasename.dbo.tablename
; replace databasename and tablename with the ones you want
这篇关于如何在MS SQL Server 2012中使用Marge数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文