Return Substring without specifying the length of string
892256Oct 13 2011 — edited Oct 18 2011Hi,
I have a string like '(months_between (:start date,'01-JAN-2000')/12)'.
I want to return the substring ':start date'.To get this i can write the query as:
SELECT SUBSTR('months_between (:start date,''01-JAN-2000'')/12',(instr('months_between (:start date,''01-JAN-2000'')/12',':start date')),11)
FROM dual
But i want that string to be returned without specifying the length or end of string as ','.
Any help would be appriciated.
Thanks.