mysql删除表中指定数据,delete from..where

mysql -uxx -pyyy

    select count(id) from lottery.mop_bet_order_history where created_at < '2015-11-01' and where created_at > '2015-10-01';

    delete from lottery.mop_hot_history where created_at < '2015-11-01' and where created_at > '2015-10-01';



先查询表中指定条件的数据有多少条,再delete删除。


你可能感兴趣的:(mysql,删除,delete)