You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version

来源:互联网 发布:vue.js 时间戳格式化 编辑:程序博客网 时间:2024/04/26 15:15

今天,执行公司的接口,

控制台报了:“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 '>”

这样的错,当时我的第一想法就去查我的sql语句,发先单独在mysql中运行有结果,再仔细看看,确认不是我的sql问题

这就尴尬了,哪能怎么办啊?再仔细查查啊,查来查去,发现了我在

<select id="searchGroupByName" parameterType="map" resultType="map">>多写了一个 这个东西 ">"

解决办法:删掉“>”这个讨厌的东西就行了

1 0