摘要:
最近用了MySQL+ibatis做项目问题描述:在SQL里 用到了 a.name like ##%searchName%##searchName=test_1发现出来的结果:test_1, test01原来下划线_在mysql中是特殊符号,代表任意一个字符*解决方案:code里面需要对下划线_做转义: test_1 ==> test\_1问题解决。 阅读全文
posted @ 2014-01-27 14:58
tomcat and jerry
阅读(8114)
评论(2)
推荐(0)

浙公网安备 33010602011771号