Re: common db question: datetime or date & time

From: Date: Tue, 27 Jun 2006 11:12:57 +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-24484@lists.php.net to get a copy of this message
Matthias Nothhaft wrote:
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?
I prefer to use date or datetime, that are human readable. Separation between date and time just depends on your application: most of times it's not needed. -- Massimiliano Arione http://garakkio.altervista.org

« previous php.pear.general (#24484) next »