donnatronious
asked on
SQL Script - Insert comma separated values with a comma in value
In the 5th value I am entering below, I actually want to enter the comma in the middle. I want to enter this as the 5th value '''1900-01-01''','''0001-0 1-01'''. Is there some kind of escape character I can use to enter that in the manner described?
insert into CMvCM2.dbo.LA_Analysis_Var _MICLGCDt values (
'score1',
29,'-29',
536870912,
'd.MICLGCDt',
'''1900-01-01''','''0001-0 1-01''',
'b.MICLGDt',
'''01-01-1900''')
insert into CMvCM2.dbo.LA_Analysis_Var
'score1',
29,'-29',
536870912,
'd.MICLGCDt',
'''1900-01-01''','''0001-0
'b.MICLGDt',
'''01-01-1900''')
You do not need to escape commas.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Why dont you directly use the whole things inside a single quoted string
i didn get your reason for using it in this way.
'1900-01-01,0001-01-01'
if im wrong, please correct me
i didn get your reason for using it in this way.
'1900-01-01,0001-01-01'
if im wrong, please correct me