Received: from mail2.rdc3.on.home.com (mail2.rdc3.on.home.com [24.2.9.41]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eALMHas28652 for ; Tue, 21 Nov 2000 17:17:37 -0500 (EST) (envelope-from davidcoley@home.com) Received: from cr572379a ([24.114.120.154]) by mail2.rdc3.on.home.com (InterMail vM.4.01.03.00 201-229-121) with SMTP id <20001121221531.DANJ25249.mail2.rdc3.on.home.com@cr572379a> for ; Tue, 21 Nov 2000 14:15:31 -0800 From: "David Coley" To: Subject: RE: Create tables using Perl DBI Date: Tue, 21 Nov 2000 17:20:57 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 In-Reply-To: <20001121160648.A6279@rice.edu> Importance: Normal X-Archive-Number: 200011/228 X-Sequence-Number: 264 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