Databases :: MySql :: MySQL past 30 days ? |
|||
| By: Nono |
Date: 24/03/2008 10:15:30 |
Points: 20 | Status: Answered Quality : Excellent |
| how to get data past 30 days in MySQL ? | |||
| By: VGR | Date: 24/03/2008 10:24:21 | Type : Answer |
|
| well, basically this is standard SQL problem & solution, and even syntax using MySql ;-) let's suppose you've some kind of data, datatime or timestamp column in your table (or else I doubt you'll be able to solve your problem ;-) all you've to do is select like this : select * from your_table where datetime_field < now() - INTERVAL 30 DAY; regards |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








