create table auta(
-> id int autoincrement,
-> model varchar(20) not null,
-> ilosc_drzwi int not null,
-> rocznik varchar(4) not null,
-> silnik float not null,
-> kolor varchar(20) not null,
-> cena float not null,
-> przebieg float not null,
-> primary key(id)
-> );
Po zrobieniu tej tabeli pojawia się błąd: ERROR 1064 (42000): 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 'autoincrement,model varchar(20) not null,ilosc_drzwi int not null,rocznik varcha' at line 1
Usunąłem autoincrement i działało, ale chciałbym żeby to działało z tym autoincrementem. Czy da się to jakoś zrobić?