删除没有任何员工的部门信息

来源:互联网 发布:仿手写软件app 编辑:程序博客网 时间:2024/05/16 09:11
 delete from departments d
 where not exists
 (select * from employees where departmentid = d.departmentid)
0 0
原创粉丝点击