Użytkuję KRASNAL'a i chciałbym stworzyć baze danych. Jako takie tabele stworzyłem ( dane, uzytkownicy, ksiazki )
wklepując w pole zapytań dany kod :
CREATE OR REPLACE TABLE uzytkownicy ( ID int(5) constraint user_PK PRIMARY KEY, uzytkownik varchar(30) NOT NULL, haslo varchar(30) NOT NULL, data_r varchar(10) NOT NULL, constraint user_FK FOREIGN KEY (ID) REFERENCES dane (ID) )
chciałem dać połączenie między tabelą uzytkownicy a tabela dane i wyskakuje mi błąd :
CODE
MySQL zwrócił komunikat: Dokumentacja
#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 'table uzytkownicy
(
ID int(5) constraint user_PK primary key,
uzytkownik var' at line 1
#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 'table uzytkownicy
(
ID int(5) constraint user_PK primary key,
uzytkownik var' at line 1
Wiecie jak rozwiązać dany problem ?