how could one split a string in PL/SQL to get the last value if the pattern look like this? :
'1;2', in this case the value i want would be 2.
Note: the splitter is the character ';' and values are of different length like '1;2 or 123;45678 etc...'
Thanks in advance!
SELECT SUBSTR( column_name,
INSTR( column_name, ';', -1 ) + 1 )
FROM table_name
should work. Here is a SQL Fiddle example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With