Reputation: 17751
I'd like to alter a PostgreSQL column to convert from integer
to decimal
, setting all integer
values to <value>.0
. How do I do this?
Upvotes: 1
Views: 942
Reputation: 19320
ALTER TABLE my_table_name ALTER some_column TYPE decimal;
Relevant documentation.
Upvotes: 3