首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

查询防止SQL流入的方法

2012-08-01 
查询防止SQL注入的方法mysql: select * from tbl_school where school_name like concat(%,#name#,%)

查询防止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#+'%'

热点排行