ibatis/mybatis模糊匹配

來源:https://www.cnblogs.com/gaojing/archive/2013/01/04/2844932.htmlhtml 無效的方法:mysql select * from table1 where name like '%#name#%'  兩種有效的方法: 1) 使用$代替#。此種方法就是去掉了類型檢查,使用字符串鏈接,不過可能會有sql注入風險。sql select
相關文章
相關標籤/搜索