在我正在处理的代码库中,我经常遇到mysql查询格式错误的问题。不幸的是,传回的错误通常是无用的:
Mysql error: [You have an error in your SQL syntax; check the manual that correspondsto your MySQL server version for the right syntax to use near ':status0 OR FlagStatus = :status1 )ORDER BY OrderId DESC, Gif
我有一个名为script.sql的文件global $sql;提供:
#1064 - You have an error in your SQL syntax; check the manualthat corresponds to your MySQL server version for the right syntax to