I have this query, i need to select all records between two dates, the mysql table is a datetime format.
I tried this but it didn\'t work.
select * f
The above will work great. If you wanted to add extra conditions, normal Boolean logic works with date/time as well so you could do something like
... where DATE(calldate) < '20121201' AND DATE(calldate) >= '20121203' OR DATE(calldate) = '20121205'
Just a simple example.