mysql5.7当两个字段名类似,查询时会出错
excepInfo: select id,describe from iwebshop_student_problem where id=256 order by id desc -- 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 'describe from iwebshop_stu'
这个表中存在两个字段 describe,describe2,
所以需要加上符号`
select `id`,`describe` from iwebshop_student_problem where id=256 order by id desc
这样就不会错误