【发布时间】:2013-11-26 07:04:31
【问题描述】:
格林威治标准时间 +8 下午好
有没有办法从多个数据库中搜索数据?嗯,我知道我们可以做到 如下所示:
select * from table1 where [name] = 'John'
select * from table2 where [name] = 'John'
有没有办法像这样搜索它
select * from sometables where [name] = 'john'
【问题讨论】:
-
看到示例后,我认为您的任务是从多个表中搜索数据。如果是这样,我更喜欢使用联接。
标签: sql tsql sql-server-2000