Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: (OT) parsing time in mysql

by Ieronim (Friar)
on Aug 11, 2006 at 21:18 UTC ( [id://566947]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    SELECT * from `your_table_name` WHERE DAY(time) = DAY(NOW())
    
  2. or download this
    SELECT * from `your_table_name` WHERE 
      YEAR(time) = YEAR(NOW()),
      DAYOFYEAR(time) = DAYOFYEAR(NOW())
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://566947]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found