pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stefan Sturm <stefan@urkman.de>
To: postgres@yahoogroups.de
Subject: [postgres] Foreign Key
Date: Mon, 13 Oct 2003 10:55:17 +0200
Message-ID: <20031013085545.EFCF2D1B503@svr1.postgresql.org> (raw)
In-Reply-To: <003b01c371f9$9b9933d0$0200a8c0@sturmxp>

Hallo zusammen,

ich würde gerne folgenden Foreign Key in meine DB einbauen. Leider
bekomme ich immer eine Fehlermeldung.
Hier die Situation:

Ich habe 2 Tabellen:
status:
ID Numeric
Name Text

logins:
ID Numeric
Name Text
Status__id Numeric

In der Tabelle status befinden sich Datensätze. Die Tabelle logins ist
leer. Nun versuche ich folgenden Befehl:

ALTER TABLE "public"."login " ADD CONSTRAINT "test" FOREIGN KEY
("status__id") REFERENCES "public"."status"("id")
  ON DELETE RESTRICT
  ON UPDATE RESTRICT
  NOT DEFERRABLE;

Jetzt bekomme ich immer die Fehlermeldung:
ERROR:  Query was cancelled.

Und das war auch schon alles.

Kann mir da einer Helfen?

Danke und Grüße,
Stefan Sturm

PS: Ich mache das ganze mit dem Programm EMS PostgreSQL Manager Version
1.8.0.1


Wenn Sie Ihr Abonnement fuer diese Gruppe kuendigen moechten, senden 
Sie eine E-Mail an:
postgres-unsubscribe@egroups.de

 

Die Nutzung von Yahoo! Groups ist Bestandteil von http://de.docs.yahoo.com/info/utos.html 





view thread (22+ messages)  latest in thread

Message-ID: <20031013085545.EFCF2D1B503@svr1.postgresql.org>
Permalink:  ../20031013085545.EFCF2D1B503@svr1.postgresql.org/
Also on:    postgresql.org/message-id/20031013085545.EFCF2D1B503@svr1.postgresql.org

 · 

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-sql@postgresql.org
  Cc: stefan@urkman.de, postgres@yahoogroups.de
  Subject: Re: [postgres] Foreign Key
  In-Reply-To: <20031013085545.EFCF2D1B503@svr1.postgresql.org>

* 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