add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
select regexp_substr(name, '[^,]+', 1, 1) as parent_name,
regexp_substr(name, '[^,]+', 1, 2)
from (select 'ab,cd' as name from dual union all select 'ef' from dual) t
PARENT_NAME REGEXP_SUBSTR(NAME,'[^,]+',1,2)
ab cd
ef null