How to alter a datatype on a column in PostgreSQL?

Viewed 15

So this is the method i've been using: "ALTER TABLE galaxy ALTER COLUMN body_type TYPE UNIQUE;

And I get an error, and a pointer appears under the U in UNIQUE. I would have posted a picture if I could have. What is the correct method to change the data type?

0 Answers
Related