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. sql editor result has idea why result strange?

use order "timestamp" (without casting date).


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -