package com.xiaoc.test;
import java.util.regex.Pattern;
/**
* 过滤SQL参数,防止特殊字符引发的异常和SQL注入
* 只适用于MySQL数据库
* @author sodarfish
* @since 2008.1.21
* @update 2008.1.24
*/
public class SQLFilter{
public static final int NUMBER_FOR_QUERY=0;
public static final int MYSQL_CHAR_FOR_UPDATE=1;
public static final int MYSQL_CHAR_FOR_NONLIKE_QUERY=2;
public static f
阅读全文
类别:java相关 查看评论文章来源:
http://hi.baidu.com/solosky772/blog/item/5506bdb5d4771dc636d3ca87.html
posted on 2009-03-03 12:40
solosky 阅读(292)
评论(0) 编辑 收藏