当前位置: 代码迷 >> SQL >> 查询防止SQL流入的方法
  详细解决方案

查询防止SQL流入的方法

热度:85   发布时间:2016-05-05 14:20:52.0
查询防止SQL注入的方法


mysql: select * from tbl_school where school_name like concat('%',#name#,'%') ? ?
? ?
oracle: select * from tbl_school where school_name like '%'||#name#||'%' ? ?
? ?
sql server:select * from tbl_school where school_name like '%'+#name#+'%'

  相关解决方案