Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Błąd tworzenia tablicy #1064, #1064
saperek25
post
Post #1





Grupa: Zarejestrowani
Postów: 52
Pomógł: 0
Dołączył: 1.11.2009
Skąd: Bytom

Ostrzeżenie: (0%)
-----


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

Ten post edytował saperek25 19.05.2012, 08:21:59
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
trafas
post
Post #2





Grupa: Zarejestrowani
Postów: 87
Pomógł: 12
Dołączył: 31.05.2006

Ostrzeżenie: (0%)
-----


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.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 07:45