connect by clause in regex_substr

后端 未结 3 701
星月不相逢
星月不相逢 2020-12-08 05:37

I cant get the understanding of this statement - not eveN after googling around

 
pv_no_list :=\'23,34,45,56\';
SELECT   DISTINCT REGEXP_SUBSTR (pv_no_li         


        
3条回答
  •  暖寄归人
    2020-12-08 05:57

    SELECT DISTINCT REGEXP_SUBSTR ('23,34,45,56','[^,]+',1,LEVEL) as "token"
    FROM   DUAL
    CONNECT BY REGEXP_SUBSTR ('23,34,45,56','[^,]+',1,LEVEL) IS NOT NULL
    order by 1
    

    @alfasin: Order by 1, it is throwing error for me. "missing right paranthesis" Also if I skip this then when I call the oracle procedure it gives error "ORA-22950: cannot ORDER objects without MAP or ORDER method"

提交回复
热议问题