Re: common db question: datetime or date & time
| From: | Justin Patrin | Date: | Tue, 27 Jun 2006 16:10:26 +0000 |
| Subject: | Re: common db question: datetime or date & time | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24488@lists.php.net to get a copy of this message | ||
On 6/27/06, Matthias Nothhaft <php@mahono.com> wrote:
Hi folks, any time I work on database schemas I wonder if it is better to use a datetime datatype or separate date and time fields to store timestamps. Does any one know a best practice or has any one some expieriences why what in which situation?If you're using date and time together as one then I would see no reason to separate them into 2 fields. I use datetime fairly often myself.
Thanks in advance for any help! Regards, Matthias -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- Justin Patrin