Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Blad przy imporcie pliku .sql
Forum PHP.pl > Forum > Bazy danych > MySQL
Amarel
Witam!
Czy molgby mi ktos poprawic fragment pliku .sql?

CREATE TABLE militaryattack (
aid int(4) PRIMARY KEY NOT NULL AUTO_INCREMENT,
general1_time int(4) default '0',
general1_units text,
general2_time int(4) default '0',
general2_units text,
general3_time int(4) default '0',
general3_units text,
);

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 ')' at line 9
huntercs
mogłeś już zostać na tym IRCu rolleyes.gif
  1. CREATE TABLE militaryattack (
  2. aid int(4) PRIMARY KEY NOT NULL AUTO_INCREMENT,
  3. general1_time int(4) DEFAULT '0',
  4. general1_units text,
  5. general2_time int(4) DEFAULT '0',
  6. general2_units text,
  7. general3_time int(4) DEFAULT '0',
  8. general3_units text
  9. );
Amarel
Dziekuje. Wszystko dziala.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.