标签: sql sql-server dynamic schema union
Microsoft SQL Server
我想结合他们。例如:
select * from [*].[MyTable]
我能这样做吗?
答案 0 :(得分:1)
像这样的东西
select * from [dbo].[MyTable] UNION select * from [schema1].[MyTable] UNION select * from [schema2].[MyTable] UNION select * from [schema3].[MyTable]