|
pl/sql truncating string after character
i have a value from a database field which is formatted as 123-45. I want to take 123 and assign it to variable a, and 45 and assign it to variable b, but I can't find what I need to do this. can i use the ltrim and rtrim functions? the problem is that the values left and right of the '-' can vary in length.
|