阅读背景:

在SQL中执行EXEC时在字符串中使用变量值

来源:互联网 

I want to use a variable value in exec where i don't need to create the query itself. I will have a query stored in a field in my database and i just want to execute that using the parameters in that stored procedure. For Example below i declared two variables @ValueVariable is the parameter of stored procedure and what i declared @QueryString is the one i will read from data base and i want to execute that using the value of @ValueVariable.I want to use a variable value in exec where i




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: