I've a column in my postgresql database as ids with data type as character varying(2000)
The records in it are in form of
'1,2,5,8,9,10,12'
'23,34,65,99'
'11,16,86,77,75,95,100,14'
I want values as separate integers
Desired output - 1,2,5,8,9,23,34,65,.........,77
I tried things like split_part but it does not return all the part of query also the length of records are different.