You are here: Re: mysql query to get rec's created in last 30 days « PHP Programming Language « IT news, forums, messages
Re: mysql query to get rec's created in last 30 days

Posted by 427SOHC on 06/23/06 07:01

In article <1150970609.653300.44400@r2g2000cwb.googlegroups.com>, monomaniac21
says...
>
>can you write a mysql qery to retrieve all rows from a table where the
>date collumn is equal to a value (date) from now to 30 days ago?
>

Maybe something like


SELECT * FROM table WHERE date >= 'today'::date - '30 days'::interval;


--
Unlimited Newsgroup Download Day
Newsguy Bandwidth Blowout 6-29-06
More Info - http://www.newsguy.com/nolimits.htm

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация