I am sure this is just a syntax screw up, but having looked at the manual, I can’t see how I’m going wrong:
INSERT INTO
`2012`(country_name)
VALUES
(`Afghanistan`),(`Algeria`),(`Botswana`),(`Burkina Faso`)
Where country_name is a column in my database. However, on submitting the query I get:
Error Code: 1054. Unknown column ‘Afghanistan’ in ‘field list’
But Afghanistan is not mean to be a field, it’s a value! What am I missing? Thanks!
values should be wrap with single quotes, not backtick
backtick are used to escape columnNames and tableNames that are reserved keywords in MySQL. ex,