PostgreSQLのテーブルを日付/時刻フィールドで昇順に並べ替える必要があります。 last_updated
。PostgreSQL sort by datetime asc、最初にnullを指定しますか?
しかし、そのフィールドが空またはnullであることを許され、私はlast_updated
にヌルのレコードを望んさは null以外last_updated
前来ます。
これは可能ですか?
order by last_updated asc /* and null last_updated records first ?? */
が必要:またhttp://www.postgresql.org/docs/9.0/static/queries-order.html – mhd