In this image is the same error code of my title, I created a new table successfully and what I had to do was insert data from another table to this new table. For the first time it worked, but when I had to insert data from a second table into the new table, I got this error code. What can I do to avoid that?
This is was what I used to create the table
CREATE TABLE cityState (
city VARCHAR(90) NOT NULL,
state CHAR(2) NOT NULL,
zipCode CHAR(5) NOT NULL UNIQUE,
primary key (zipCode)
);
This next set of commands worked
INSERT INTO cityState (city, state, zipCode)
SELECT city, state, zipCode
FROM crew;
This next set of commands gets the error code, I'm trying to fix the whole duplicate thing basically
INSERT INTO cityState (city, state, zipCode)
SELECT city, state, zipCode
FROM passenger;