There is a Trim function that I can trim a specific character, but I was wondering if it could trim integers.
I have a list of strings:
'ABC01'
'ABCD02'
'AB5123'
Length and number are irregular.
After I run a SQL command, I would like to get this:
'ABC'
'ABCD'
'AB'
I would use the translate function. The REGEXP functions in Oracle tend to be CPU hogs compared to the simpler text processing functions.
The “A” at the beginning of the second parameter, and matching A for the last parameter translates “A”s to “A”s, doing nothing, but without something in the third parameter string, ORACLE will return null.
EDIT Simple test case