(MySQL 4.1.7 using phpMyAdmin 2.6.0-pl3)
Here's a file called info.csv:
"e-mail","Subscribe_to_Newsletter ",""
"ajak@myway.com","on",""
"anthony_knight@hotmail.com","off",""
I created a table called mail, with 2 columns (e-mail Subscribe_to_Newsletter)
Then ran this query:
INSERT INTO mail (email, Subscribe_to_Newsletter)
VALUES ("ajak@myway.com","on",""
"anthony_knight@hotmail.com","off","");
But got this error message:
Error
SQL-query:
INSERT INTO mail( email, Subscribe_to_Newsletter )
VALUES (
"ajak@myway.com", "on", "" "anthony_knight@hotmail.com", "off", ""
)
MySQL said: Documentation
#1136 - Column count doesn't match value count at row 1
What's wrong with the query & why does the CSV file use double quotation marks?.
Here's a file called info.csv:
"e-mail","Subscribe_to_Newsletter ",""
"ajak@myway.com","on",""
"anthony_knight@hotmail.com","off",""
I created a table called mail, with 2 columns (e-mail Subscribe_to_Newsletter)
Then ran this query:
INSERT INTO mail (email, Subscribe_to_Newsletter)
VALUES ("ajak@myway.com","on",""
"anthony_knight@hotmail.com","off","");
But got this error message:
Error
SQL-query:
INSERT INTO mail( email, Subscribe_to_Newsletter )
VALUES (
"ajak@myway.com", "on", "" "anthony_knight@hotmail.com", "off", ""
)
MySQL said: Documentation
#1136 - Column count doesn't match value count at row 1
What's wrong with the query & why does the CSV file use double quotation marks?.