2017-02-20 21:59
@JFinal userRole表中有userID与roleId两个字段,我先用userId查询出UserRole对象,再设置set("roleId",roleId),最后UserRole对象调用update(),报sql错误:“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 'where `roleId` = 36 and `userId` = 8' at line 1”