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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: confused newbie (to pg not db's)
Дата
Msg-id 4485.1076600703@sss.pgh.pa.us
обсуждение исходный текст
Ответ на confused newbie (to pg not db's)  (mike <mike@redtux1.uklinux.net>)
Ответы Re: confused newbie (to pg not db's)  (mike <mike@redtux1.uklinux.net>)
Список pgsql-interfaces
mike <mike@redtux1.uklinux.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


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: kwiles81@earthlink.net
Дата:
Сообщение: Re: Can not connect with pgin.tcl
Следующее
От: Daniel Gerardo Lucero Baylon
Дата:
Сообщение: Cannot compile libpq for Win 32 Environment