摘要:
transient List query(Config config, Connection conn, String sql, Object paras[]) throws SQLException { List result = new ArrayList(); PreparedStatement pst = conn.prepare... 阅读全文
posted @ 2016-07-15 11:20
N神3
阅读(448)
评论(0)
推荐(0)
摘要:
public class Test{ //匹配替换掉order by之后的字符串 public static void main(String[] args) { Pattern pattern = Pattern.compile("order\\s+by\\s+[^,\\s]+(\\s+asc|\\s+desc)?(\\s*,\\s*[^,\\s]+(\\s+asc|\\s+desc)?)*"... 阅读全文
posted @ 2016-07-15 10:34
N神3
阅读(288)
评论(0)
推荐(0)

浙公网安备 33010602011771号