asp.net 参数化like模糊查询
asp.net 参数化like模糊查询asp.net 通过参数化like模糊查询的方法
List<SqlParameter> parameterList = new List<SqlParameter>(); if (!string.IsNullOrEmpty(strArticleName)) { string strWhere += " and ArticleName like @ArticleName"; parameterList.Add(new SqlParameter("@ArticleName", "%" + strArticleName+ "%")); }