使用dbUtils更新添加删除

	//根据uid删除用户记录
	public boolean deleteUser(String uid) throws SQLException{
		String sql = "delete from t_user where uid=?";
		int a = qr.update(sql,uid);	//返回受影响的行数,int类型
		return a>0;
	}

猜你喜欢

转载自blog.csdn.net/duanbaoke/article/details/86002118