tsql - Replace() in SQL isn't working with " -
i'm receiving json string database i'm trying convert comma delimited list. current state:
my sql looks like:
begin transaction select id, prioritygroups , replace( replace( replace(prioritygroups, '["', ''), '"]', ''), '"."', ', ') 'updated comma delimited' dbo.ca id= 51 rollback transaction
for whatever reason when try replace
"."
with comma , space it's not making changes output. i've tried escaping double quotes i'm being told it's invalid syntax , i'm not sure else try!
its not "."
replaced in string. characters replaced ","
select id, prioritygroups , replace( replace( replace(prioritygroups, '["', ''), '"]', ''), '","', ', ') 'updated comma delimited' dbo.ca id= 51
a valid json string comma delimited , not delimited period .
character
Comments
Post a Comment