Received: from trends.net (root@clio.trends.ca [209.47.148.2]) by hub.org (8.9.3/8.9.3) with ESMTP id KAA01302 for ; Sat, 3 Jul 1999 10:50:18 -0400 (EDT) (envelope-from blackgr@alltel.net) Received: from localhost.localdomain (r-97.136.alltel.net [166.102.97.136]) by trends.net (8.8.8/8.8.8) with ESMTP id JAA28287 for ; Sat, 3 Jul 1999 09:14:23 -0400 (EDT) Received: from localhost (blackgr@localhost) by localhost.localdomain (8.9.3/8.9.3) with ESMTP id RAA01051 for ; Thu, 1 Jul 1999 17:17:35 -0400 X-Authentication-Warning: localhost.localdomain: blackgr owned process doing -bs Date: Thu, 1 Jul 1999 17:17:35 -0400 (EDT) From: blackgr X-Sender: blackgr@localhost.localdomain To: pgsql-sql@postgresql.org Subject: problem creating table Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I haven't been able to get following definition for table entity to work. I keep getting a "parse error at or near position." The definition for table phone works fine. I can delete the line with the definition for position and the table is created, but why escapes me at the moment. Any clues appreciated. Glynn Black blackgr@alltel.net CREATE SEQUENCE entity_id_seq; CREATE TABLE entity ( entity_id_number int4 DEFAULT NEXTVAL('entity_id_seq'), name varchar(60) not null, address1 varchar(60) not null, address2 varchar(60), city varchar(60) not null, state char(2) not null, zip char(10) not null, description varchar(60), type int2 not null, position int2 not null, PRIMARY KEY (entity_id_number)); CREATE SEQUENCE phone_id_seq; CREATE TABLE phone ( phone_id_number int4 DEFAULT NEXTVAL('phone_id_seq'), entity int4 not null, type int2 not null, phone_number char(7) not null, area_code char(3) not null, PRIMARY KEY (phone_id_number));