I want to do a search on a certain table for instance which I will call people and the column name is birthday. I want to see if there is anybody born on '29-feb-2007'. I need to use that date format. Any suggestion on how to write this query?
SQL date query
Collapse
X
-
MySQL retrieves and displays DATETIME values in 'YYYY-MM-DD HH:MM:SS' format so you might have to convert your date first before doing the search.Originally posted by pdeliteI want to do a search on a certain table for instance which I will call people and the column name is birthday. I want to see if there is anybody born on '29-feb-2007'. I need to use that date format. Any suggestion on how to write this query? -
Hi,Originally posted by pdeliteI want to do a search on a certain table for instance which I will call people and the column name is birthday. I want to see if there is anybody born on '29-feb-2007'. I need to use that date format. Any suggestion on how to write this query?
I guess this link might helpful:
Regards,
PradeepComment
Comment