How do I convert a comma separated string to a array?
I have the input '1,2,3' , and I need to convert it into an array.
1,2,3'
here is another easier option
select to_number(column_value) as IDs from xmltable('1,2,3,4,5');
2.1m questions
2.1m answers
60 comments
57.0k users