Skip to content
Advertisement

deleting all occurrences of a character before the next different character

In a postgres table I have a column with values like:

I need to delete all 0 before the next character that is NOT a 0. So, the previous column will became:

Is this possible in psql?

Advertisement

Answer

(No comment necessary.)

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement