为了防止SQL注入,iBatis模糊查询时也要避免使用$$来进行传值。下面是三个不同 数据库 的ibatis的模糊查询传值。 mysql : select * from stu where name like concat('%',#name #,'%') oracle: select * from stu where name like '%'||#name #||'%' SQL Server:select * from stu where name like '%'+#name #+'%
查看更多关于防止SQL注入 iBatis模糊查询 - 网站安全 - 自学php的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did12301