Received: from shaked.cc.openu.ac.il (shaked.cc.openu.ac.il [147.233.145.65]) by hub.org (8.9.1/8.9.1) with ESMTP id JAA21565 for ; Tue, 8 Dec 1998 09:46:07 -0500 (EST) (envelope-from herouth@oumail.openu.ac.il) Received: from [147.233.159.109] (herouth@mac-herouth.pc.openu.ac.il [147.233.159.109]) by shaked.cc.openu.ac.il (8.8.8/8.8.8) with ESMTP id QAA09222; Tue, 8 Dec 1998 16:45:26 +0200 (IST) X-Sender: herouth@shaked.cc.openu.ac.il Message-Id: In-Reply-To: <366D3789.44FD0081@mint.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Tue, 8 Dec 1998 16:46:51 +0200 To: Bill Sneed From: Herouth Maoz Subject: Re: [GENERAL] NULL & NOT NULL Cc: pgsql-sql@postgreSQL.org (redirected to the SQL list): At 16:28 +0200 on 8/12/98, Bill Sneed wrote: > The table creation works fine twith the NOT NULL but won't work with > the NULL. > NULL is supported isn't it? I can't see where I'm making a syntax > error. Got me stumped. TIA. The syntax is not supported. Columns allow nulls unless specified as NOT NULL. So just drop the 'null' to achieve the same effect. In fact, this NULL is not standard - here is the definition from SQL 1992: ::= { | } [ ] [ ... ] [ ] ::= [ ] [ ] ::= NOT NULL | | | As you can see, you can only write NOT NULL, not simply NULL. Herouth -- Herouth Maoz, Internet developer. Open University of Israel - Telem project http://telem.openu.ac.il/~herutma