Re: ORDER BY TIMESTAMP_column ASC, NULL first

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: ORDER BY TIMESTAMP_column ASC, NULL first
Дата
Msg-id 20040215115858.E88869@megazone.bigpanda.com
обсуждение исходный текст
Ответ на ORDER BY TIMESTAMP_column ASC, NULL first  (Fredrik Wendt <fredrik@csbnet.se>)
Список pgsql-sql
On Thu, 12 Feb 2004, Fredrik Wendt wrote:

> I read posts telling me that NULL values are considered greater than
> non-null values. Fine. Is there a way to explicitly reverse this?

Not directly, but I think ORDER BY assignedAt IS NOT NULL, assignedAt ASC
will give the ordering you want at the cost of probably not using an index
on assignedAt.


В списке pgsql-sql по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: max timestamp
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Unable to convert date to tm