Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z constraint
baczu24
post
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 3.07.2008

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


witam, kolejny raz mam problem z constraint :


create table dozent(
ID integer PRIMARY KEY,
imie varchar(50) NOT NULL,
uczelnia varchar(50),
constraint uczelnia_fk FOREGIN KEY (uczelnia) REFERENCES uczelnia(nazwa),
miasto varchar (50) DAFAULT 'Wroclaw',
godziny float check (godziny >0)
);

z gory dziekuje za pomoc
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
baczu24
post
Post #2





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 3.07.2008

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


[webshop] ERROR 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'uczelnia varchar(50),
constraint uczelnia_fk FOREGIN KEY (uczelnia) REFERENCES uczelnia(nazwa),' at line 5


jakbys to rozwiazal?
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 2.10.2025 - 22:08