I have created a table and trying to perform a simple insert statement. I am getting an error saying ERROR: column "namespecies" of relation "species" does not exist.
Here is my table:
CREATE TABLE Species (
nameSpecies VARCHAR(50) NOT NULL,
scientificName VARCHAR(50) NOT NULL,
population BIGINT NOT NULL,
CONSTRAINT Species_cc0 PRIMARY KEY (nameSpecies),
CONSTRAINT Species_cc1 UNIQUE (scientificName),
CONSTRAINT Species_formatNom CHECK
(nameSpecies SIMILAR TO '[a-z ]*' AND scientificName SIMILAR TO '[a-z ]*')
);
Here is my insert statement:
INSERT INTO Species (nameSpecies, scientificName, population) VALUES ('cat', 'feline', 600000000);
Am I missing something??