关于存在别名的delete语句

DELETE
            t1
        FROM
            t_employee t1
        WHERE
            t1.n_id NOT IN (
                SELECT DISTINCT
                    t.n_employee_id
                FROM
                    t_dept_employee t
            )
    

猜你喜欢

转载自blog.csdn.net/u012129031/article/details/83086054