Database:POSTGRESQL
I have a table location_type with 2 columns id,name. I want to delete column name and add 2 other columns:county,city. However I get error and I can’t figure out why.
This is what I tried:
ALTER TABLE location_type
DROP COLUMN name;
ALTER TABLE location_type
ADD (county character varying(255) NOT NULL,
city character varying(255) NOT NULL);
Maybe someone can see what I am doing wrong. Any suggestions are appreciated. Thanks.
Your syntax is wrong. Try this [Doc]: