Page 1 of 1

mysqltcl help

Posted: Thu Mar 02, 2006 1:32 am
by B3aVeR
hey Fellow TCLers

i have a question

ill need to count out from unixtime in the db and find count of adds for the current day..
how can i do that ?

Posted: Fri Mar 03, 2006 1:19 am
by demond
not a Tcl question, but anyway:

Code: Select all

SELECT COUNT(stuff) FROM sometable WHERE FROM_UNIXTIME(timestamp, '%Y-%m-%d') = CURDATE()