From: blackgr <blackgr@alltel.net>
To: pgsql-sql@postgresql.org
Subject: problem creating table
Date: Thu, 1 Jul 1999 17:17:35 -0400 (EDT)
Message-ID: <Pine.LNX.4.10.9907011627130.829-100000@localhost.localdomain> (raw)
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));
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: blackgr@alltel.net
Subject: Re: problem creating table
In-Reply-To: <Pine.LNX.4.10.9907011627130.829-100000@localhost.localdomain>
References: <Pine.LNX.4.10.9907011627130.829-100000@localhost.localdomain>
* 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