Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z zapytaniem
xxdrago
post
Post #1





Grupa: Zarejestrowani
Postów: 654
Pomógł: 42
Dołączył: 27.07.2010
Skąd: Jaworzno

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


Witam co tutaj mam źle?

Zapytanie SQL:
Kod
CREATE TABLE TELEFON(
id_telefonu varchar( 10 ) ,
nazwa_komisu varchar( 15 ) ,
Model varchar( 10 ) ,
Cena int( 10 ) kolor varchar( 15 ) ,
PRIMARY KEY ( id_telefonu ) ,
INDEX ( id_telefonu ) ,
FOREIGN KEY ( nazwa_komisu ) REFERENCES KOMIS( nazwa_komisu )
) TYPE = innodb;


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 'kolor varchar(15), primary key(id_telefonu), index(id_telefonu), foreign key(naz' at line 1


--------------------
GG: 10972302 :)
Go to the top of the page
+Quote Post

Posty w temacie


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 - 10:59