Skip to content
Advertisement

remove extra “WWW_” using sql SUBSTRING [closed]

In the Name_code column, we have these types of

I want O/P the value like this

SUBSTR(Name_code,4, length(Name_Code)-3) i tried this but no result

How will do That?

Advertisement

Answer

You can use instr to find the index of the first underscore (_), and then substr from the character after that to the end of the table:

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