I don't know how to split a string in Oracle 11g.
My input input string is the manufacturer name.
If the Manufacturer’s Name is longer than 30 characters
- Find the occurrence of first occurrence of an open parenthesis – “(“
If found Find the next occurrence of a close parenthesis – “)”
Replace the last characters of the Manufacturer’s Name with the cage code characters - If NOT found
Truncate the Manufacturer’s Name to 30 characters
Example:
Input :
Arrow Industries International-MX7(4432)
Output:
Arrow Industries Interna(4432)
the update statement should be
update manufacture_table
set name='Arrow Industries Interna(4432)'
please help on this