How can we parse a tilde delimited column in sql to create several columns?
问题 I have a table TableA with a tilde operated column ColumnA TableA **ColumnA** 123~abc~def~~~~~ghi~j~k~lmn~op~~~ 231~a~dfg~wer~~~~~~~hijkl~~~ As we can see in the above two rows, it is '~' separated. I basically want to separate the values into individual columns. There are 15 '~' operators. My output table should be something like Col1 Col2 Col3 Col4 . . .. . . .. .. .. .. . 123 abc def . .. . .. .. ... .. . . . I have a query in DB2 which will do this but it requires 15 subqueries to achieve