select
trim(regexp_substr(t.column_A, '[^,]+', 1, levels.column_value)) as column_A
from (SELECT * FROM table_t t ) t,
table(cast(multiset(select level from dual
connect by level <= length (regexp_replace(t.column_A, '[^,]+')) + 1) as sys.OdciNumberList)) levels
Not able to find alternate for connect by level in postgresql. Also the dual don't exist in postgresql.
It would be great help if someone help me to identify alternative for the above posted query.
question from:https://stackoverflow.com/questions/65939402/unable-to-find-alternative-for-connect-by-level-in-postgresql