查询字符串中防止SQL注入

写SQL语句时,为了防止SQL注入,

通常做如下处理

 

strSearch.ToLower.Replace("--", " ").Replace(" -", " ")

 

posted on 2018-06-20 12:49  新西兰程序员  阅读(171)  评论(0编辑  收藏  举报