Received: from bologna.nettuno.it (bologna.nettuno.it [193.43.2.1]) by hub.org (8.9.3/8.9.3) with ESMTP id IAA96635 for ; Tue, 16 Nov 1999 08:41:59 -0500 (EST) (envelope-from jose@sferacarta.com) Received: from proxy.sferacarta.com (mail@sfcabop1.nettuno.it [193.207.10.213]) by bologna.nettuno.it (8.9.3/8.9.3/NETTuno 3.3) with ESMTP id OAA00628; Tue, 16 Nov 1999 14:41:00 +0100 (MET) Received: from rosso.sferacarta.com (sferacarta.com) [10.20.30.5] by proxy.sferacarta.com with esmtp (Exim 2.05 #1 (Debian)) id 11nkSw-0004uj-00; Tue, 16 Nov 1999 15:24:18 +0000 Message-ID: <38315E00.4CDB885F@sferacarta.com> Date: Tue, 16 Nov 1999 14:37:05 +0100 From: jose soares X-Mailer: Mozilla 4.5 [it] (Win95; I) X-Accept-Language: it MIME-Version: 1.0 To: Bruce Stephens CC: pgsql-sql@postgresql.org Subject: Re: [SQL] NULL References: <383059DA.9D2AF70D@kirra.net> <87u2mnttmt.fsf@cenderis.demon.co.uk> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Bruce Stephens ha scritto: > Goran Thyni writes: > > > How about this according to SQL standard: > > > > CREATE TABLE x { y integer NULL }; > > > > It suppose to mean that NULLs are explicitly allowed in > > this field. > > Is this required by SQL-92? > > 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. > > ************ Sorry, I don't understand why we need this feature. This is completely out of standard. What's that mean ? - Is it a constraint to allow only NULL values ? (unuseful) - If this is a default value we already have this in: CREATE TABLE table1 (field1 int DEFAULT NULL); - According with SQL-92 every column can store a NULL value by default unless one specify a NOT NULL constraint for the column. José