Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Błąd tworzenia tablicy #1064
Forum PHP.pl > Forum > Bazy danych > MySQL
saperek25
kod zapytania:

  1. CREATE TABLE `bloglm_article` (
  2. `article_id' int(11) NOT NULL auto_increment,
  3. `article_title` varchar(150) collate utf8_unicode_ci NOT NULL,
  4. `article_intro` varchar(255) collate utf8_unicode_ci NOT NULL,
  5. `article_cont` text collate utf8_unicode_ci NOT NULL,
  6. `article_autor` varchar(25) collate utf8_unicode_ci NOT NULL,
  7. `article_howmany` int(11) NOT NULL default '0',
  8. `article_keyword` varchar(255) collate utf8_unicode_ci NOT NULL,
  9. PRIMARY KEY (`article_id`)
  10. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=51;


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 'article_title` varchar(150) collate utf8_unicode_ci NOT NULL, `article_intro` va' at line 2

ok już nie ważne smile.gif
trafas
Powinno być:

  1. `article_id` int(11) NOT NULL auto_increment,


a jest

  1. `article_id' int(11) NOT NULL auto_increment,


chodzi o znak za article_id.
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.