pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mike <mike@redtux1.uklinux.net>
To: pgsql-interfaces@postgresql.org
Subject: confused newbie (to pg not db's)
Date: Thu, 12 Feb 2004 14:15:24 +0000
Message-ID: <1076595324.3818.8.camel@datacc> (raw)

I have setup a database that I am the owner of, and I am trying to setup
constraints and it doesn't seem to be working

Example

- Table: public."Invoice_Header"

-- DROP TABLE public."Invoice_Header";

CREATE TABLE public."Invoice_Header"
(
  "Inv_ID" int4 NOT NULL DEFAULT nextval('public."Invoice
Header_ID_seq"'::text),
  "client_ID" int2 NOT NULL,
  payable_recievable varchar(5),
  "date_CREATED" date,
  "AMOUNT" money,
  amount_paid money,
  date_paid date
) WITH OIDS;

I am trying to make Inv_ID a primary key as follows

alter table Invoice_Header ADD CONSTRAINT PK_inv PRIMARY KEY (Inv_ID)

which runs without error, but nothing changes

this is from psql with PG 7.3.2

any help appreciated




view thread (3+ messages)  latest in thread

Message-ID: <1076595324.3818.8.camel@datacc>
Permalink:  ../1076595324.3818.8.camel@datacc/
Also on:    postgresql.org/message-id/1076595324.3818.8.camel@datacc

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: mike@redtux1.uklinux.net
  Subject: Re: confused newbie (to pg not db's)
  In-Reply-To: <1076595324.3818.8.camel@datacc>

* 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