delete c_price_list,c_lees,c_price,c_propel,c_impel FROM c_price_list LEFT JOIN c_impel ON c_impel.id_price_list=c_price_list .id LEFT JOIN c_lees ON c_lees.id_price_list=c_price_list .id LEFT JOIN c_price ON c_price.id_price_list=c_price_list .id LEFT JOIN c_propel ON c_propel.id_price_list=c_price_list .id WHERE c_price_list.`date`<DATE_SUB(NOW(), INTERVAL 2 DAY)
2 way
delete from c_impel,c_lees,c_price,c_propel,c_price_list using c_impel,c_lees,c_price,c_price_list,c_propel where c_impel.id_price_list=c_price_list.id and c_lees.id_price_list=c_price_list.id and c_price.id_price_list=c_price_list.id and c_propel.id_price_list=c_price_list.id and c_price_list.`date`<DATE_SUB(NOW(),INTERVAL 2 DAY)
I want to remove all data 2 days ago from the tables. Indices c_price_list.id (Primary key), id_price_list (key). I am waiting for an hour or two, nothing is deleted, the number of rows in the tables is still the same.