My Stored procedure takes one parameter @IDs and it has values in it like '1,2,3'. I want to get rid of these single quotes. How can I do it? Like I want just 1,2,3 and NOT '1,2,3'. How do I modify this parameter value inside my SP?
you can do this:
@IDs = REPLACE(@IDs, '''', '');
If your parameter is VARCHAR, NVARCHAR or something like string :)
您可以改用表变量,请在线阅读BOoks中的操作方法。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.