Selecting a column that is also a keyword in MySQL

Posted by randall123 on Stack Overflow See other posts from Stack Overflow or by randall123
Published on 2010-10-22T02:27:13Z Indexed on 2012/10/30 23:01 UTC
Read the original article Hit count: 322

Filed under:
|

For some reason, the developers at a new company I'm working for decided to name their columns "ignore" and "exists". Now when I run MySQL queries with those words in the where clause, I get a syntax error; however, I can't seem to figure out how to reference those columns without running into an error. I tried setting them as strings, but that doesn't make any sense.

Help?

Also, is there a term for this kind of mismatch?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about keyword