use backtick
to escape keyword instead. just like how you created your table. using double quote or single quote will parse it into string
that is why you’re getting two records of and
select `AND` from test;
More Related Contents:
- Which DB technology is sued to solve the following search issue? [closed]
- MySQL pivot row into dynamic number of columns
- Rank function in MySQL
- Count the number of occurrences of a string in a VARCHAR field?
- Find nearest latitude/longitude with an SQL query
- MySQL – Operand should contain 1 column(s)
- How to get the difference in years from two different dates?
- Restore table structure from frm and ibd files
- mysql pivot/crosstab query
- MySQL: Split comma separated list into multiple rows
- Most efficient way to get table row count
- UNION query with codeigniter’s active record pattern
- Subqueries with EXISTS vs IN – MySQL
- Is there an ANSI SQL alternative to the MYSQL LIMIT keyword?
- Remove Primary Key in MySQL
- 60 million entries, select entries from a certain month. How to optimize database?
- Get most recent row for given ID
- Is it possible to GROUP BY multiple columns using MySQL?
- MySQL monthly Sale of last 12 months including months with no Sale
- Is merge statement available in MySQL
- Mysql covering vs composite vs column index
- MYSQL syntax not evaluating not equal to in presence of NULL
- MySQL: LAST_INSERT_ID() returns 0
- Using reserved words in column names
- MySQL INNER JOIN select only one row from second table
- Storing IPv6 Addresses in MySQL
- Insert/ Update random date in MySQL
- Replace null with 0 in MySQL
- Get total hours worked in a day mysql
- ORDER BY alphabet first then follow by number