substr+instr

SQL> with t as
  2  (select 'aa,bbb,cccc' name from dual union all
  3  select 'dsad,dll,dsad' from dual)
  4  select substr(name,1,instr(name,',')-1) a,
  5            substr(name,instr(name,',')+1,instr(name,',',1,2)-instr(name,',')-1) b,
  6            substr(name,instr(name,',',1,2)+1) b
  7           from t;

A                                                   B                                                   B
---------------------------------------------------- ---------------------------------------------------- ----------------------------------------------------
aa                                                  bbb                                               cccc
dsad                                              dll                                                  dsad

相关文章:

  • 2021-10-26
  • 2021-08-10
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-07
  • 2021-09-25
  • 2022-02-05
  • 2022-12-23
  • 2021-08-24
  • 2021-11-24
  • 2022-02-14
相关资源
相似解决方案