I have a table named \'test\'
It contains a column named \'AND\'
For that I use the following queries
insert into test values (\'a\',\'abc\')
Don't create columns with a name that is a keyword.
If you do create a column with such a name, use backticks (MySQL only) or double quotes (SQL standard) to enclose the name. I'm not certain whether you need to switch on some mechanism to have double quotes work in MySQL. This creates a 'delimited identifier'.
SELECT `AND` AS a, "AND" AS b
FROM test;
See also: