Any Function Starts with a String and End with a String
951418Dec 10 2012 — edited Dec 10 2012Hi,
Is ther any function whch will chek for the string starts with and the string that ends with.
E.g
v_data
c237z121206
h237z121206
a237z121206
c238z121207
h238z121207
a238z121207
c239z121210
h239z121210
a239z121210
v_current_date := to_char(sysdate, 'YYMMDD');
I want to get the string that ends with 121210 i.e instr(v_data, v_current_date) this wll bring the first occurence of 121210,
and starts with 'a'
So that i can get data 'a239z121210' and not 'C'
Is there any function that can use to chekc the First and last string.
I also dont want to use the 3rd occurence of the v_current_Date
Please help