tsql - Replace() in SQL isn't working with " -


i'm receiving json string database i'm trying convert comma delimited list. current state:

enter image description here

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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -