Mysql datetime datatype, from that datetime how can i compar only time part

Hello i have database table in mysql, there is Datetime datatype column, from that datetime how can i compare only time part .....??
Thanks in advance...

Note you can't simply just compare time via equality however.
Timestamp resolution is to the second or even milli-second. No user wants to match a time to an exact millisecond.
What they want is something like a match by hour - for example returning the number of transactions that happened from 1pm to 2pm. Even that isn't completely correct because then you need to consider whether 1pm and/or 2pm is inclusive or exclusive. Normally one end will be inclusive and the other exclusive.
So first you need to define what the period is.
Then construct the range.
Then pass the range and, as already mentioned, use specific functions to handle the extraction of the time.

Similar Messages

Maybe you are looking for

  • Iphone won't connect to Computer or Itunes.

    Hi. I was in ITunes syncing my phone when all of the sudden ITunes froze (surprising i know -_-). So I unplugged my IPhone, restarted ITunes and plugged my device back it. I got an error code (dont remember it) and it saying it couldn't connect to th

  • Cannot attach a pdf after extracting a page in Acrobat X Pro

    I have a user that wants to extract one page from a multi page pdf and then e-mail it.  He performs these steps - > Tools - Extract - Share - The file is not showing up in the Select Any Type of File box and the Attach to Email bubble is filled in. H

  • After updating my iPhone 5 to iOS 8.0.2 my safari, mail and calendar won't open. How do I rectify this issue?

    I recently updated my iPhone 5 to the iOS8.0.2 version and since then I cannot access my safari, my mail and my calendar icon is blank.  Every time I touch the icon it just blinks, the phone screen goes white and then it reverts back to the main scre

  • Photoshop error when launching

    I am trying to open my Photoshop but immediately when launched I receive the following error. Any thoughts on how to correct?

  • More flexible jsf tables

    i am trying to build a table using jsf. it should group by category (read/unread) and/or date, then the actual data. my DTO contains all rows plus the extra info (read/unread+date) my first thought was: i just need a table with three rows per item. t