MySQL Forums
Forum List  »  Quality Assurance

Date comparation problem
Posted by: Bogdan Gusiev
Date: April 30, 2008 04:05AM

Hi All,

I have met the following problem with one of my MySQL DB instance:

mysql> select jobcreationdate from job where date(jobcreationdate) = '2008-01-21'
-> ;
Empty set (0.00 sec)

mysql> select jobcreationdate from job where jobid = 50
-> ;
+---------------------+
| jobcreationdate |
+---------------------+
| 2008-01-21 06:11:37 |
+---------------------+
1 row in set (0.00 sec)

mysql>

Does anybody know where the problem is?



Edited 1 time(s). Last edit at 04/30/2008 06:53AM by Bogdan Gusiev.

Options: ReplyQuote


Subject
Views
Written By
Posted
Date comparation problem
3369
April 30, 2008 04:05AM
2123
May 13, 2008 01:30PM
2020
June 12, 2008 09:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.