Quantcast
Channel: User shenn - Stack Overflow
Viewing all articles
Browse latest Browse all 40

Using single quote in replace?

$
0
0

I am passing the following string into my Stored Procedure

'1,2,3,4,5,6'

I am trying to replace the , with ',' so that my string is translated to:

'1','2','3','4','5','6'

Is this possible? Here is my attempt:

Declare @Var2 varchar(250)SET @Var2 = Replace(@Var1, ',', "','")

Viewing all articles
Browse latest Browse all 40

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>