Re: "NOT NULL"

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: "NOT NULL"
Дата
Msg-id c2d9e70e05052322285c8c7dc3@mail.gmail.com
обсуждение исходный текст
Ответ на "NOT NULL"  (tövis <tovises@freemail.hu>)
Список pgsql-novice
On 5/23/05, tövis <tovises@freemail.hu> wrote:
> Thanks Jaime!
> Using pgAdmin III selected all rows:
> SELECT aid,num,name30 FROM nod ORDER BY num;
>
> First rows from result in a CSV file:
>
> aid;num;name30
> "374";"0";"2181                          "
> "371";"0";"2178                          "
> ...
>
> Is this a NULL or not? May be the method is not precise enough?
>
>
The better way you can prove that is:
SELECT aid,num,name30 FROM nod
WHERE num IS NULL ORDER BY num;

like Andreas said NULL is not 0, NULL is "unknown".

BTW, do the reply in this thread, that will do searches in
archives.postgresql.org easier.

--
Atentamente,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: [despammed] "NOT NULL"
Следующее
От: tövis
Дата:
Сообщение: Re: "NOT NULL"