I have a field called higlights in my database. In that fields I store the higlights of the products. Now the higlights field looks like this:

"some higlight"; "another highlight"; "blabla"; "etc"

I want convert all those records in my database to:

some higlight; another highlight; blabla; etc

What is the most productive way to do that?

有帮助吗?

解决方案

If you are just trying to remove the double quotes, then you would do:

update tableName
    set highlights = replace(highlights, '"', '')
    where highlights like '%"%';
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top