delete from userinfo where userinfo guid in (select guid from personinfo where departid = 部门id);//删除人员信息 delete from personinfo where departid = 部门id;//删除用户信息 delete from UNITORGANIZATION where departid = 部门id//删除部门信息