so I have a table with 5.2 million records. 3 columns in this table are for salaries. Those column are currently stored as string and I'd like to change the data type to
numeric (I understood while researching it that
numeric is better than
I'm trying to run this command:
ALTER TABLE lca_test ALTER COLUMN prevailing_wage TYPE numeric(10,0) USING prevailing_wage::numeric;
But I'm getting the error
ERROR: invalid input syntax for type numeric: "40768,43"
I'm not sure how I can make it work. Any idea?