Skip to content
Advertisement

How to delete defined value from the begining of character in Oracle SQL?

I have table in Oracle SQL like below:

So I have in col1:

  • always “ABC|” at the begining of each value
  • different length of values after “ABC|”

I need result like below, so I need to delete “ABC|” from begining of each value

How can I do that in Oracle SQL ?

Advertisement

Answer

A simple substring operation might be easiest here:

You could also do a replacement:

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