FMDB刪除前50條數據的寫法

刪除前50條數據web delete from tab where (select count(Id) from tab)> 50 and Id in (select Id from tab order by Id ASC limit 50); 換成相應的數量便可,若想刪除50條以後的數據,用這個:sql delete from tab where (select count(Id) from t
相關文章
相關標籤/搜索