I have this table:
CREATE TABLE `search`.`location` (
`id` INT NOT NULL AUTO_INCREMENT ,
`location` VARCHAR CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARSET=utf8 COLLATE utf8_general_ci;
I have a CSV file with one column with some cities:
New York
Boston
Las Vegas
..
When I try to import that file to the table I get this error:
Invalid column count in CSV input on line 1.
I think that's because I have 2 columns in the table (id , location) , And just one column in the CSV file , The ID is auto incremented.
How to import the CSV to that table with 2 columns one of them is auto incremented?