sql - Select where date without time -
i using sqlite, how can select query if have timestamp column has value example 07:00 06/03/13 want select timestamp 06/03/13.
this example of query..
select timestamp, pname attendance timestamp between `06/01/13` , `06/10/13`
when filtering on timestamp column, want logic.
where yourfield >= thestartofyourrange , yourfield < thedayaftertheendofyourrange this equivalent 2 answers use date() function, perform faster. using functions in clause slows down production, on indexed fields.
Comments
Post a Comment