| От | Bruno Wolff III |
|---|---|
| Тема | Re: How do you compare (NULL) and (non-NULL)? |
| Дата | |
| Msg-id | 20041027153643.GA14288@wolff.to обсуждение исходный текст |
| Ответ на | How do you compare (NULL) and (non-NULL)? (Wei Weng <wweng@kencast.com>) |
| Ответы |
Re: How do you compare (NULL) and (non-NULL)?
|
| Список | pgsql-sql |
On Tue, Oct 26, 2004 at 16:23:20 -0400, Wei Weng <wweng@kencast.com> wrote: > In the following query > > SELECT Parent FROM Channels ORDER BY Parent ASC; > > If I have a couple of (NULL)s in the field [Parent], they will be listed at > the bottom of the query result. > > Is it because PostgreSQL considers (NULL) as the biggest value? If I run > the same query under MSSQL Server 2000, I get the exact opposite result > regarding the order of (NULL)s and (non-NULL) values. They are listed at > the very beginning of the query result. If the order matters, you can order by IS NULL or IS NOT NULL.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера