Split function in oracle to comma separated values with automatic sequence

后端 未结 8 978
遇见更好的自我
遇见更好的自我 2020-11-28 09:37

Need Split function which will take two parameters, string to split and delimiter to split the string and return a table with columns Id and Data.And how to call Split funct

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 10:40

    Try like below

    select 
        split.field(column_name,1,',','"') name1,
        split.field(column_name,2,',','"') name2
    from table_name
    

提交回复
热议问题