我的mybaits 第2-6的sql 拼接 一直報(bào)錯(cuò) 那位大神指點(diǎn)一下 謝謝
sql.append("and DESCRIPTION like '%'?'%'");
報(bào)錯(cuò)信息
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執(zhí)行會(huì)報(bào)錯(cuò)的
2016-07-11
謝謝 好了