visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Databases :: MySql :: MySQL past 30 days ?


By: Nono Great Britain  Date: 24/03/2008 10:15:30  English  Points: 20 Status: Answered
Quality : Excellent
how to get data past 30 days in MySQL ?
By: VGR Date: 24/03/2008 10:24:21 English  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

EContact
browser fav
page generated in 289.019820 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page