質問

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