From: David Coley <davidcoley@home.com>
To: pgsql-interfaces@postgresql.org
Subject: RE: Create tables using Perl DBI
Date: Tue, 21 Nov 2000 17:20:57 -0500
Message-ID: <HEEKIDKMKOPLHIMFOPMLIEIJCDAA.davidcoley@home.com> (raw)
In-Reply-To: <20001121160648.A6279@rice.edu>
Wow... it worked. See what happens when you learning you make little
mistakes. Should have realized that earlier when someone else suggested.
Thanks a lot everyone.
DC
>>>
Hmm, after reformating your SQL so I can read it, I found this:
"create table customer (
ID serial PRIMARY KEY,
name text NOT NULL,
email text NOT NULL,
phone text NOT NULL,
---> fax text DEFAULT,
address text NOT NULL,
---> address2 text DEFAULT,
zip text NOT NULL,
city text NOT NULL,
state text NOT NULL,
country text NOT NULL)"
What are you expecting to happen with DEFAULT with nothing after it?
That's the 'at or near ","' part. Either drop the DEFAULT or add a text
to default to.
Are you perhaps looking for NULL? (as apposed to NOT NULL?) It's allowed
in the grammar, but is the default, so you don't need it.
Ross
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: davidcoley@home.com
Subject: RE: Create tables using Perl DBI
In-Reply-To: <HEEKIDKMKOPLHIMFOPMLIEIJCDAA.davidcoley@home.com>
* 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