标签: sql sql-server-2008 database-design relational-database
答案 0 :(得分:0)
现在我做了这样的事,但我不确定我是不是
DECLARE @a nvarchar(100) SET @a= (select * from MasterDB.dbo.Clients_Master_Table); DECLARE @SQL nvarchar(MAX) SET @SQL = 'select * from '+ @a +' where Client_Name= somedatabse name'