2017-03-02 70 views

回答

0

FROM

DELETE app_files tiko 
where tiko.doc_type_id = 2102 and 
     tiko.application_id IN (SELECT c.id 
           FROM cus_app c 
           WHERE c.`app_date`>='2017-01-27 00:01:01' AND 
            c.`app_status` IN ('accepted') 
          ); 

或者。 。 。如果您是在直接使用DELETE FROM表,使用表名

delete tiko from app_files tiko 
    . . .; 
0
DELETE FROM app_files 
where doc_type_id = 2102 and application_id IN 
(SELECT c.id FROM cus_app c 
WHERE c.`app_date`>='2017-01-27 00:01:01' AND c.`app_status` IN ('accepted')) 
相關問題