Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Comma separated to column

Orcl ApexApr 19 2022

Hi All,
I want to convert comma-separated rows to columns.

WITH rws AS (
  SELECT ' , 2, 3' c1
  FROM dual
  UNION ALL
  SELECT '1, , 3' c1
  FROM dual
)
SELECT * FROM rws;

C1 C2 C3
   2  3
1     3
This post has been answered by Frank Kulash on Apr 19 2022
Jump to Answer
Comments
Post Details
Added on Apr 19 2022
9 comments
551 views