sql.append("and DESCRIPTION like '%'?'%'");
报错信息
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 'DESCRIPTION like '%''''%'' at line 1
你打印一下sql,看一下and前是不是没有空格,没有空格sql执行会报错的
谢谢 好了