数据库1:AAA 数据库2:BBB 数据库名和表名之间放两个点 select * from [AAA]..TableA a inner join [BBB]..TableB b on a.AcountID = b.ClientID 注意:必须是单个Sql实例! 转载于:https://www.cnblogs.com/tishifu/archive/2007/10/27/939623.html