Hi this is my first time posting. I have searched all over for an answer but can't seem to find one that fixes mine. I am writing mysql code for a project and can't seem to insert data into a database I am creating. The link to the code is here:
http://sqlfiddle.com/#!9/be69b
Below is what I have come up with so far
CREATE TABLE IF NOT EXISTS `customers` (`CustomerID` INT AUTO_INCREMENT,
`FirstName` VARCHAR(255) NOT NULL,
`LastName` VARCHAR(255) NOT NULL,
`Address` VARCHAR(255) NOT NULL,
`Apt#` VARCHAR(255) NOT NULL,
`City` VARCHAR(50) NOT NULL,
`State` VARCHAR(3) NOT NULL,
`Zip` VARCHAR(9) NOT NULL,
`HomePhone` VARCHAR(11),
`MobilePhone` VARCHAR(11),
`OtherPhone` VARCHAR(11),
PRIMARY KEY(`CustomerID`)
)
ENGINE=INNODB;
INSERT INTO `customers` VALUES
(`1`, `John`, `Doe`, `123 Green St.`, `Apt A.`, `Richmond`, `VA`, `78646`, `18049481616`, ``, ``);
It throws out an error saying that Unknown column 1 in field list
. I have tried doing this without AUTO_INCREMENT
and it doesn't change anything. Can anyone help with this? Thanks for your help!