Setting Foreign Key - Error

Поиск
Список
Период
Сортировка
От Çağıl Şeker
Тема Setting Foreign Key - Error
Дата
Msg-id 94327A2FE8C87C4C89A82DBE9E7B2B3F089C2E@beetle.biznet.com.tr
обсуждение исходный текст
Список pgadmin-support
Hi,

I get an error when trying to add a foreign key constraint:

"CREATE TABLE: column "mno" referenced in foreign key consraint does not exist"

Yes, it does not exist because it is "MNo" not "mno". But foreign key form of pgAdmin has a combo box that I select my
FKcolumn and it does no allow me to insert "" around MNo. I think "add column" wizard uses ""s internally, but FK
wizarddoesn't which I think is an error. Am I wrong? 

Also, when I change my column name to "mno" from "MNo", it gives that error:

"UNIQUE constraint matching gives keys for referenced table "Manufacture" not found"

NOTE: "Manufacture"s primary key is "No". I also have a table named say "XXX" which has a FK named "MNo" referencing
"Manufacture"s"No". 

What should I do instead?

Cagil SEKER
-----------------
"Yes, I am a criminal. My crime is that of outsmarting you. Something that you'll never forgive me for!" - The
Mentor'86(Hacker's Manifesto) 

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

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: altering the name of the public schema [SOLVED]
Следующее
От: "Macropac"
Дата:
Сообщение: unsubscribe