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 'COMMAND='查看'' at line 1 查询出错哪里有问题呢
拼接没有空格
你下载源码了吗?
应该是Message.xml的select标签中间select语句最后没加where 1=1
正确的sql语句是select ID,COMMAND,DESCRIPTION,CONTENT from MESSAGE where 1=1 and COMMAND=? 。
没加where 1=1的话拼出来的sql语句是select ID,COMMAND,DESCRIPTION,CONTENT from MESSAGE and COMMAND=?
所以会有SQL语法错误