Thanks very much for your help !
Can I sort on the first few characters of the time stamp? i.e
$timestamp = '2000-12-30 01:01:01'
select from where $timestamp > $2000-12-30 order by $timestamp[1,10]
I'e just sort records by the date and not time as well? Thanks.
Martin Taylor wrote:
I remember having to specify date literals between # signs, but I found these, which are apparently the ODBC standards for date literals.
Date
use { d 'yyyy-mm-dd' }
e.g { d '1995-06-20' }
Time
use { t 'hh:mm:ss' }
e.g { t '15:34:08' }
Date/Time
use { ts 'yyyy-mm-dd hh:mm:ss' }
e.g { ts '1995-06-20 15:34:08' }