pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bill Sneed <bsneed@mint.net>
To: pgsql-general@hub.org <pgsql-general@hub.org>
Subject: NULL & NOT NULL
Date: Tue, 08 Dec 1998 14:28:25 +0000
Message-ID: <366D3789.44FD0081@mint.net> (raw)

I'm  (1) new to postgres & (2) trying to "convert" the sample db found
in "The Practical SQL Handbook" Bowman, et al. to postgres.  When
trying to create the following table I get "parser: parse error at or
near 'null'" 

create table authors (
	au_id		char(11)	not null,
	au_lname	varchar(40)	not null,
	.
	.
	.
	zip		char(5)		null
);

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.

........Bill Sneed Prospect, Maine......




view thread (2+ messages)  latest in thread

Message-ID: <366D3789.44FD0081@mint.net>
Permalink:  ../366D3789.44FD0081@mint.net/
Also on:    postgresql.org/message-id/366D3789.44FD0081@mint.net

 · 

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: bsneed@mint.net, pgsql-general@hub.org
  Subject: Re: NULL & NOT NULL
  In-Reply-To: <366D3789.44FD0081@mint.net>
  References: <366D3789.44FD0081@mint.net>

* 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