I am trying to figure out how to use array_to_string in PostgreSQL to change a column's data type.
Currently my column has arrays, for example: ["7856", "2345"]. Which I would like to change to a string: 7856, 2345.
Currently I can just do this with SELECT but can't figure out how to alter the data. So far I have just been using:
SELECT array_to_string(myColumnn,',') as myColumn from myTable
Is there a way to use this to permanently change the data type in the column?
Thank you