嵌套删除的sql语句

DELETE 
FROM
    t_stock_unbind 
WHERE
    epc IN (
SELECT
    f.* 
FROM
    (
SELECT
    s.epc 
FROM
    t_stock s 
WHERE
    s.epc IN ( SELECT c.epc FROM t_stock_unbind c WHERE c.warehouse_id = '14' ) 
    ) f 
    
    )

你可能感兴趣的:(嵌套删除的sql语句)