From: Rich Payne <rdp@talisman.alphalinux.org>
To: axp-software@lists.alphalinux.org
Cc: axp-list@redhat.com
Subject: MySQL and NOW()
Date: Tue, 7 Dec 1999 21:43:32 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.10.9912072136590.3141-100000@talisman.mv.com> (raw)
Is anybody using the NOW() function within MySQL for DATETIME fields? I've
run into something a little strange. If, at the mysql command line I enter
"select NOW();" mysql returns the current date and time. Howver if I embed
that in a query:
insert into table (insert_date) values (NOW());
I end up with very strange dates, usually something like:
0000-00-00 00:01:33
and the system time is set correctly.
Any ideas?
I could set all this manually, but the NOW() funtion seems so much easier!
Rich Payne
rpayne@alphalinux.org www.alphalinux.org
reply other threads:[~1999-12-08 2:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox