Quantcast
Viewing latest article 13
Browse Latest Browse All 40

Using single quote in replace?

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 latest article 13
Browse Latest Browse All 40

Trending Articles