I accidentally put a PHP statement into MySQL:
select * from info where id={${intval(17a)}}
MySQL gave me the error message:
ERROR 1054 (42S22): Unknown column '17a' in 'where clause'
Why does MySQL not issue a syntax error, empty result, or show {${intval(17a)}}
in the error message? The column in the id
value is {${intval(17a)}}
but mysql says column '17a'
? Are the curly braces and dollar sign special characters in MySQL?