Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL]Niepoprawna skladnia, ale gdzie?
Raven1122
post
Post #1





Grupa: Zarejestrowani
Postów: 369
Pomógł: 2
Dołączył: 1.11.2010

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


Kod:
  1. CREATE TABLE 'emes_konfiguracja'(
  2. 'config_id' int(11) NOT NULL AUTO_INCREMENT,
  3. 'config_name' varchar( 5 ) NOT NULL DEFAULT,
  4. 'config_value' varchar(255) NOT NULL DEFAULT,
  5. PRIMARY KEY( 'config_id' )
  6. ) TYPE=MYISAM AUTO_INCREMENT=15;


Blad:
#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 ''emes_konfiguracja'( 'config_id' int(11) NOT NULL AUTO_INCREMENT, 'config_name' at line 1

Ten post edytował Raven1122 28.08.2011, 21:27:13
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Raven1122
post
Post #2





Grupa: Zarejestrowani
Postów: 369
Pomógł: 2
Dołączył: 1.11.2010

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


  1. CREATE TABLE `emes_konfiguracja` (
  2. `config_id` int( 11 ) NOT NULL AUTO_INCREMENT ,
  3. `config_name` varchar( 5 ) NOT NULL DEFAULT none,
  4. `config_value` varchar( 255 ) NOT NULL DEFAULT none,
  5. PRIMARY KEY ( `config_id` )
  6. ) TYPE = MYISAM AUTO_INCREMENT =15;


#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 'none, `config_value` varchar(255) NOT NULL DEFAULT none, PRIMARY KEY( `config_id' at line 1

Co teraz?

Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 4.10.2025 - 08:11