From: | Chester <chester(at)hica(dot)com(dot)au> |
---|---|
To: | Michael Glaesemann <grzm(at)seespotcode(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Stuck on Foreign Keys |
Date: | 2007-09-20 05:21:51 |
Message-ID: | 46F2036F.2010404@hica.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Michael Glaesemann wrote:
>
> On Sep 19, 2007, at 23:13 , C wrote:
>
>> ERROR: insert or update on table "clients" violates foreign key
>> constraint "the_title"
>> DETAIL: Key (ticode)=( ) is not present in table "titles".
>>
>> Sorry, I have no idea where I am going wrong...Any help would be great
>
> You've shown us the errors but not the commands you used that threw
> the errors. Show us the exact commands you used along with the errors
> so we might see what's going wrong. It looks like you're not providing
> a value for ticode when inserting or updating clients, but that's just
> a guess.
>
> Michael Glaesemann
> grzm seespotcode net
>
>
Thanks Michael
The table's are existing populated table the error was happening
whilst altering the client table to add the FC, sorry if that was not
clear. Maurice put me right there were a couple of rows in the client
table with null values in the ticode column.
Thanks again guys
Cheers
C
From | Date | Subject | |
---|---|---|---|
Next Message | A. Kretschmer | 2007-09-20 05:37:24 | Re: Stuck on Foreign Keys |
Previous Message | Benjamin Smith | 2007-09-20 05:18:41 | Re: Is this good spec for a PostgreSQL server? |