Вопрос

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