morevsegouk Posted May 8, 2012 Share Posted May 8, 2012 (edited) Hi. Please help me. Here is the screenshot of Stats table that is full with old data: How can I save my time and delete rows of all the years except 2012? ... even when I choose to show 1000 rows - it gets more than 2400 pages and manually it might take at least 1 day to clean old data I really appreciate your help, Presta boy Edited May 8, 2012 by morevsegouk (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted May 8, 2012 Share Posted May 8, 2012 you would need to execute a SQL delete command with a where clause, something like DELETE FROM `stats` WHERE `date` < '2011-12-31 23:59:59'; For reference http://faq.nucleuscms.org/item/162 1 Link to comment Share on other sites More sharing options...
morevsegouk Posted May 8, 2012 Author Share Posted May 8, 2012 (edited) tx - done only it should be done without time (just date) but - thank you! Edited May 8, 2012 by morevsegouk (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now