You are here: Re: Getting an MySQL first day and last day statement « PHP SQL « IT news, forums, messages
Re: Getting an MySQL first day and last day statement

Posted by Steve on 02/23/06 21:56

> How can I write a MySQL statement that asks "give me all trips between
> (and including) the first day of March, 2006 and the last day of March,
> 2006?"

It would help to see the definitions for the tables involved. However,
this is roughly what you need, adapt as required...

SELECT *
FROM trips
WHERE startdate BETWEEN '20060301' AND '20060331'

---
Steve

 

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

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