DELETE

作者: susupp | 来源:发表于2018-07-24 18:10 被阅读0次
    DELETE
    FROM
        employees2
    WHERE
        deparment_id = 90;
    
    DELETE
    FROM
        (
            SELECT
                *
            FROM
                employees2
            WHERE
                department_id = 90
        );
    
    DELETE
    FROM
        employees2
    WHERE
        department_id IN (
            SELECT
                department_id
            FROM
                departments
            WHERE
                department_name = 'Executive';
    

    相关文章

      网友评论

          本文标题:DELETE

          本文链接:https://www.haomeiwen.com/subject/mruymftx.html