Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Prosze o pomoc
Forum PHP.pl > Forum > Bazy danych > MySQL
remiq26
Prosze o pomoc chciałam zrobić zapytanie do mysql poprzez phpmyadmin i dostałam nastepujący komunikat




  1. MySQL zwrócił komunikat:
  2.  
  3. #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 'auto_incremant,
  4. sLogin char(16),
  5. sPassword char(16),
  6. primary




To jest ten kod do mysql

  1. CREATE TABLE tabSession (
  2. idSession int NOT NULL AUTO_INCREMENT,
  3. idUser int NOT NULL DEFAULT 0,
  4. sid char(32),
  5. tLastAction timestamp,
  6. tDate timestamp,
  7. sIP char(15),
  8. nHits int NOT NULL DEFAULT 0,
  9. bActive tinyinit NOT NULL DEFAULT 1,
  10. PRIMARY KEY(idSession),
  11. KEY(sid(3))
  12. );
  13.  
  14. CREATE TABLE tabUser (
  15. idUser int NOT NULL auto_incremant,
  16. sLogin char(16),
  17. sPassword char(16),
  18. PRIMARY KEY (idUser),
  19. KEY(sLogin(3))
  20. );
  21.  
  22.  
  23. INSERT
  24. INTO tabUser (sLogin,sPassword) VALUES
  25. ('admin','haslo');
nospor
powinno byc:
Cytat
create table tabUser (
idUser int not null auto_increment,
.....


pozatym nie to foeum. przenosze
remiq26
Ok dziękuję Uporałam się


Pozdrawiam, Pa
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-2024 Invision Power Services, Inc.