问题
I have a value like "RWCE RU Regional" in an attribute and I need only first four characters I.e the output should be "RWCE"
回答1:
Use subtring function.
SUBSTR('RWCE RU Regional',1,4) should do.
来源:https://stackoverflow.com/questions/27873934/how-to-trim-characters-from-a-string-in-oracle