Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* MySQL and NOW()
@ 1999-12-08  2:43 Rich Payne
  0 siblings, 0 replies; only message in thread
From: Rich Payne @ 1999-12-08  2:43 UTC (permalink / raw)
  To: axp-software; +Cc: axp-list


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-12-08  2:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-08  2:43 MySQL and NOW() Rich Payne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox