SQL date query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pdelite
    New Member
    • Jun 2007
    • 1

    SQL date query

    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?
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by pdelite
    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?
    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.

    Comment

    • pradeep kaltari
      Recognized Expert New Member
      • May 2007
      • 102

      #3
      Originally posted by pdelite
      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?
      Hi,
      I guess this link might helpful:


      Regards,
      Pradeep

      Comment

      Working...