1.在mysql中遇到:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order order0_' at line 1...错误
遇到这种情况,一般是表的名称或者字段的名称是sql中的关键字。比如在本例中,我的表名是order,而order是sql中的关键字。
只要修改表名或者字段名称即可。