Re: How do you compare (NULL) and (non-NULL)?
От
Wei Weng
Тема
Re: How do you compare (NULL) and (non-NULL)?
Дата
Msg-id
418268D3.3080700@kencast.com
Ответ на
Re: How do you compare (NULL) and (non-NULL)? (Bruno Wolff III)
Список
Дерево обсуждения
How do you compare (NULL) and (non-NULL)? Wei Weng <wweng@kencast.com>
Re: How do you compare (NULL) and (non-NULL)? Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: How do you compare (NULL) and (non-NULL)? Jerome Alet <alet@librelogiciel.com>
Re: How do you compare (NULL) and (non-NULL)? Bruno Wolff III <bruno@wolff.to>
Re: How do you compare (NULL) and (non-NULL)? Wei Weng <wweng@kencast.com>
Re: How do you compare (NULL) and (non-NULL)? Bruno Wolff III <bruno@wolff.to>
Bruno Wolff III wrote: > On Tue, Oct 26, 2004 at 16:23:20 -0400, > Wei Weng 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. > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match > > How do I write that? Thanks Wei
В списке pgsql-sql по дате отправления
От: Markus Bertheau
Дата: