postgreSQL sorting with timestamps -
i have following sql statement:
select * schema."table" "timestamp"::timestamp >= '2016-03-09 03:00:05' order "timestamp"::date asc limit 15
what expect do? giving out 15 rows of table, timestamp same , bigger date, in ascending order. postgres sends rows in wrong order. first item on last position. has idea why result strange?
use order "timestamp"
(without casting date).
Comments
Post a Comment