![]() |
![]() |
![]()
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 |
|
|
![]() |
![]()
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? |
|
|
![]() ![]() |
![]() |
Aktualny czas: 2.10.2025 - 22:08 |