pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: Bill Sneed <bsneed@mint.net>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [GENERAL] NULL & NOT NULL
Date: Tue, 8 Dec 1998 16:46:51 +0200
Message-ID: <l03110701b292eabaf844@[147.233.159.109]> (raw)
In-Reply-To: <366D3789.44FD0081@mint.net>

(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:

         <column definition> ::=
              <column name> { <data type> | <domain name> }
              [ <default clause> ]
              [ <column constraint definition>... ]
              [ <collate clause> ]

         <column constraint definition> ::=
              [ <constraint name definition> ]
              <column constraint>
                [ <constraint attributes> ]

         <column constraint> ::=
                NOT NULL
              | <unique specification>
              | <references specification>
              | <check constraint definition>

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





view thread (2+ messages)

Message-ID: <l03110701b292eabaf844@[147.233.159.109]>
Permalink:  ../l03110701b292eabaf844@%5B147.233.159.109%5D/
Also on:    postgresql.org/message-id/l03110701b292eabaf844@[147.233.159.109]

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: herouth@oumail.openu.ac.il, bsneed@mint.net
  Subject: Re: [GENERAL] NULL & NOT NULL
  In-Reply-To: <l03110701b292eabaf844@[147.233.159.109]>
  References: <366D3789.44FD0081@mint.net> <l03110701b292eabaf844@[147.233.159.109]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox