I am kind of new to Postgres and I'm trying to use the following query in Postgres:
alter table tablename add column col1 enum('r', 'g', 'b') not null set default 'r';
It is giving me an error. When I changed it to default
instead of set default
, it worked fine.
Just wondering what the reason might be!