create table #t(....) exec sp_MSforeachtable 'insert into #t(...) select ... from ? where col1=100 ', @whereand='and Schema_Id=Schema_id(''DBO'') and o.Name like ''%ORDER%'''
如果我不想建视图有没有其他的办法?请版主赐教
22,209
社区成员
121,730
社区内容
加载中
试试用AI创作助手写篇文章吧