I have a table in PostgreSQL with a column "country" in which there are 32 distinct string values, but far more rows
How is it possible to assign every unique string a specific numeric value (e.g. 'Austria' = 1, 'Australia' = 2,..., 'USA' = 32) I could use the UPDATE statement, however, in this case, doing manually 32 countries is not a good way, I guess. I hope there is another way around.