Witam
Mam problem z kluczem głównym, chciałbym aby był on tekstem ale niestety phpMySQl notorycznie wyrzuca mi błąd.
Czy ktoś wie jak to zrobić ?
create table Telefon
(
IMEI TEXT(10) NOT NULL ,
IDModel int,
IDSprzedaz char(10),
IDMagazyn int,
IDZakupu int,
Opis text,
Pudelko bool,
Gwarancja bool,
Stan text,
Cena_Sprzedazy int,
unique primary key (IMEI)
);
Błąd :
#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 'primary key (IMEI)
)' at line 16