declare @s varchar(1000)set @s='select * from t'exec (@s)
你是用什么语言来调用sql的? 一般用法: select * from table1 where field1=:value1 然后对'value1'这个参数进行赋值。