Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAVA and MYSQL NOW() Function only displays year?

807580Jan 14 2010 — edited Jan 14 2010
I have run into something interesting with running the MYSQL NOW() function.

Here is what I'm running:
SELECT  NOW() from database
This gives me "2010" only. Any idea why this may be? If I run the same mysql query in mysql from the command line I get the correct output "2010-01-14 14:10:03".

Has anyone else seen this behavior?

Edited by: crusherdestroyer on Jan 14, 2010 12:19 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 11 2010
Added on Jan 14 2010
17 comments
757 views