set @sql='select * from '+@table
print @sql
exec(@sql)

 

相关文章: