Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [SQL/InterBase] problem z exception
Redka
post
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 21.06.2006

Ostrzeżenie: (0%)
-----


mam taki problem z poleceniem exception:

są dwie tabele

1) CREATE TABLE "BIURO" (
"idB" INT NOT NULL PRIMARY KEY,
"nazwabiura" VARCHAR (20) not null,
"dyr" INT);

2) CREATE TABLE "AGENT" (
"idA" INT NOT NULL PRIMARY KEY,
"nazwisko" VARCHAR(20) NOT NULL,
"idB" int not null references "BIURO"("idB") on update cascade on delete no action);

i chodzi o to, że chcę stworzyć exception, który będzie wywalany, gdy jednumu agentowi przypisze się dwa biura i nie mam pomysłu jak to rozwiązać....
Go to the top of the page
+Quote Post

Posty w temacie
- Redka   [SQL/InterBase] problem z exception   21.06.2006, 10:43:00


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 11:13