using Oracle SQL - regexp_substr to split a record -


i need split record column cmd.num_mai may contain ',' or ';'. did gave me error:

  select regexp_substr (expression.num_mai,                       '[^;|,]+',                       1,                       level)   (select cmd.num_cmd,                (select comm.com                   comm                  comm.cod_soc = cmd.cod_soc , comm.cod_com = 'url_dsd')                   cod_url,                nvl (contact.nom_cta, tiers.nom_ct1) nom_cta,                nvl (contact.num_mai, tiers.num_mai) num_mai,                nvl (contact.num_tel, tiers.num_tel) num_tel,                to_char (sysdate, 'hh24:mi') heur_today           cmd, tiers, contact              (    (cmd.cod_soc = :cmd_cod_soc)                     , (cmd.cod_eta = :cmd.cod_eta)                     , (cmd.typ_cmd = :cmd.typ_cmd)                     , (cmd.num_cmd = :cmd.num_cmd))                , (tiers.cod_soc(+) = cmd.cod_soc)                , (tiers.cod_trs(+) = cmd.cod_trs_tra)                , (tiers.cod_soc = contact.cod_soc(+))                , (tiers.cod_trs = contact.cod_trs(+))                , (contact.lib_cta(+) = 'edition')) experssion connect regexp_substr (expression.num_mai,'[^;|,]+',1,level)         

error 1:

the expression in connect by clause unary. have specify both left , right hand side operands.

try like,

connect regexp_substr (expression.num_mai,'[^;|,]+',1,level) not null 

error 2:

your bind variable name wrong. ex: :cmd_cod_eta perhaps wanted way!

(    (cmd.cod_soc = :cmd_cod_soc)                     , (cmd.cod_eta = :cmd_cod_eta)                     , (cmd.typ_cmd = :cmd_typ_cmd)                     , (cmd.num_cmd = :cmd_num_cmd)) 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -