Re: [SQL] NULL

From: Bruce Stephens <bruce(at)cenderis(dot)demon(dot)co(dot)uk>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] NULL
Date: 1999-11-24 15:08:11
Message-ID: 87vh6sc4h0.fsf@cenderis.demon.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

jose soares <jose(at)sferacarta(dot)com> writes:

> Bruce Stephens ha scritto:

> > No, it's not required. This came up before with the examples from
> > "The Practical SQL Handbook". It would be nice to allow it, but there
> > was some reason why to do so would be non-trivial, which I forget.
> > Anyway, it's not in SQL-92.

> - According with SQL-92 every column can store a NULL value by default
> unless one specify a NOT NULL constraint for the column.

Yes. NULL would just mean that NULLs are permitted. So it's not
required, obviously (since this is the default).

However, many books recommend that you should generally not allow
NULLs: thus, if you force yourself to explicitly say "NULL" or "NOT
NULL", that ought to be a prompt to consider the issue (and you can
spot cases which you may not have thought about by the absence of
either). I imagine that's why "The Practical SQL Handbook" suggests
it.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message maxsbox 1999-11-24 18:14:11 Re: pgsql-sql-digest V1 #422
Previous Message neko 1999-11-24 10:22:51 Re: [SQL] Info on SQL Parsing required