[plug] MYSQL and the Date

Andrew Barbara andrew at mailerdirect.net
Sat Feb 1 23:19:32 WST 2003


Thanks for that,
I'm using PHP to do the insert does this make a difference?


On Sat, 1 Feb 2003 levsky at rave.iinet.net.au wrote:

> On Sat, Feb 01, 2003 at 11:02:59PM +0800, Andrew Barbara wrote:
> > Hi all,
> > Is there a way to get mysql to add the date automatically when it adds an 
> > entry?  similar to the auto-increment.
> 
> Yes - create the column not null, and then don't specify the column in the
> insert - it'll default to the current date.
> 
> 



More information about the plug mailing list