Skip site navigation (1) Skip section navigation (2)

Re: confused newbie (to pg not db's)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: mike <mike(at)redtux1(dot)uklinux(dot)net>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: confused newbie (to pg not db's)
Date: 2004-02-12 15:45:03
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
mike <mike(at)redtux1(dot)uklinux(dot)net> writes:
> CREATE TABLE public."Invoice_Header"

> 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

I think you have tables named "Invoice_Header" and "invoice_header",
and the latter table is what's getting affected by your ALTER.  If you
are going to use mixed-case names then you have to be consistent about
double-quoting them all the time.

			regards, tom lane

In response to


pgsql-interfaces by date

Next:From: J├╝rgen CappelDate: 2004-02-12 19:00:12
Subject: ECPG Segfault and variable usage question.
Previous:From: kwiles81Date: 2004-02-12 15:27:15
Subject: Re: Can not connect with pgin.tcl

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group