We are using sql anywhere 12
We often get data provided to us for conversion to the database where they have text fields which contain comma separated values. Other than writing a application program to parse these out, is there any SQL that can parse a comma separated value into multiple rows a another table with reference to the source key.
If not in SA 12 - is there functionality in SA16?
asked 15 Oct '13, 14:14
Have a look at sa_split_list. The second parameter allows you to specify the delimiter - the default is a comma.
gives this result set:
line_num row_value 1 one 2 two 3 three
sa_split_list has existed since