Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
In a variable i have following value

declare @var varchar(20)='T,1'


need to print the data as
'T','1'
Posted

1 solution

Doubling them up works, e.g.

SQL
declare @var varchar(20)='''T'',''1'''
print @var


'T','1'
 
Share this answer
 
Comments
Nirav Prabtani 13-May-14 8:05am    
my 5+

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900