publicint count(string where){string s ="select isnull(count(*),0) from 表名where "+where;return Convert.ToInt32(DBHelper.ExecuteScalar(CommandType.Text, s, null).ToString());}上面的方法除了防止過了參數(shù)外?!∪绾畏乐箂ql注入攻擊。
- 2 回答
- 0 關注
- 588 瀏覽
添加回答
舉報
0/150
提交
取消