create procedure Search
@thedatabase varchar(50),
as
select * from @thedatabase
想通过传递表名来查询,但是不能用exec怎么写啊!@thedatabase 应该如何定义
@thedatabase varchar(50),
as
select * from @thedatabase
想通过传递表名来查询,但是不能用exec怎么写啊!@thedatabase 应该如何定义
@thedatabase varchar(50),
as
exec('select * from ' + @thedatabase)