我的mybaits 第2-6的sql 拼接 一直報錯 那位大神指點一下 謝謝
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
2016-07-11
你打印一下sql,看一下and前是不是沒有空格,沒有空格sql執行會報錯的
2016-07-11
謝謝 好了