//根据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;
}
使用dbUtils更新添加删除
最新推荐文章于 2023-10-15 08:14:17 发布