更新时间:2022-11-24 17:25:58
请阅读此处的文档:使用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