Pergunta

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?

Foi útil?

Solução

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

update tableName
    set highlights = replace(highlights, '"', '')
    where highlights like '%"%';
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top