In my iPhone app i wanted to query past records. There is a datetime field which named as “task_dateTime” . If used,
select task_dateTime from tasks;
Results will look like This,
Apr 26, 2012 16:32
Apr 27, 2012 16:38
Apr 29, 2012 05:32
How can i query past records. It means i wanted to compare with “task_dateTime” field with current time.
Try
select task_dateTime from tasks where task_dataTime < CURRENT_TIME;