Re: Nulls get converted to 0 problem

Поиск
Список
Период
Сортировка
От Jon Earle
Тема Re: Nulls get converted to 0 problem
Дата
Msg-id Pine.LNX.4.55.0306050931270.16042@kronos.honk.org
обсуждение исходный текст
Ответ на Re: Nulls get converted to 0 problem  (<terry@ashtonwoodshomes.com>)
Ответы Re: Nulls get converted to 0 problem  (kdebisschop@alert.infoplease.com)
Re: Nulls get converted to 0 problem  (Erik Ronström <kvarken@yahoo.com>)
Re: Nulls get converted to 0 problem  (terry@greatgulfhomes.com)
Re: Nulls get converted to 0 problem  (Andre Truter <andre.truter@intekom.co.za>)
Re: Nulls get converted to 0 problem  ("scott.marlowe" <scott.marlowe@ihs.com>)
Re: Nulls get converted to 0 problem  (Dmitry Tkach <dmitry@openratings.com>)
Re: Nulls get converted to 0 problem  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-general
On Wed, 4 Jun 2003 terry@ashtonwoodshomes.com wrote:

> Oracle *incorrectly* interprets blank (empty) strings as NULL.  They are NOT
> the same.  A string of zero characters is a string nonetheless.  A NULL is
> "the absence of value", which equals nothing (theoretically not even another
> NULL).

If you're testing a value, you're testing to see if there's something in
there or not - what difference does it make if the variable contains 0, ""
or NULL?

Why not adhere to the practices inherent (and thus anticipated by
developers) in other languages (C comes to mind) where 0, NULL and "" are
equivalent?

Cheers!

--
Jon Earle

SAVE FARSCAPE http://www.savefarscape.com/

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

Предыдущее
От: Joel Rodrigues
Дата:
Сообщение: Re: regular expression question
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: [HACKERS] SAP and MySQL ... [and Benchmark]