Hi
I have a column holding a varchar2 value in book index style - means something like 1.2.3.2.1
I need a to incement a special chapter for recursive select. I want to match 1.2.1 with 1.3.1 and 1.2.2 with 1.3.2 and so on. I am wondering if this can be done without making a pl/sql function. I have tried to do this by regexp but no success, any idea?
select to_char(value) as f from data_parsed
start with seq like '1.1.%'
connect regexp_replace(
seq, '\.(\d+)\.', '.' || to_number('\1')+1 || '.') = prior seq
;