Reply to Re: Date storage format

Your name:

Reply:


Posted by Jerry Stuckle on 01/01/08 14:37

Serious_Practitioner wrote:
> Good day, and Happy New Year!
>
> I'm trying to teach myself some PHP and MySQL and the project that I've
> decided to build will be dependent on queries involving comparisons of
> dates. I'd like some advice, please, on whether I should -
>
> 1. Store the date (2008-01-01) in the MySQL table as a date and compare to
> that, or...
> 2. Create a/ timestamp/s for the date/s in question, store the timestamp and
> then compare to that.
>
> If the timestamp is the way to go, should that column be of type "Timestamp"
> or will that cause the string to be altered to a MySQL timestamp?
>
> Thank you in advance for any assistance.
>
>
> Steve E.
>
>
>
>
>

Try comp.databases.mysql - where the MySQL experts hang out. They can
tell you the best way to do it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original 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

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