查询
查询一条记录
public UserBean findActiver(String ac) throws SQLException { QueryRunner qr = new QueryRunner(C3P0Util.getDataSource()); return qr.query("select * from users where activeCode = ?", new BeanHandler<UserBean>(UserBean.class),ac); }
查询
查询一条记录
public UserBean findActiver(String ac) throws SQLException { QueryRunner qr = new QueryRunner(C3P0Util.getDataSource()); return qr.query("select * from users where activeCode = ?", new BeanHandler<UserBean>(UserBean.class),ac); }