Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [mysq] phpMyAdmin - komendy
Babcia@Stefa
post
Post #1





Grupa: Zarejestrowani
Postów: 654
Pomógł: 17
Dołączył: 19.03.2006
Skąd: z kosmosu ;)

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


Witam, chciałem wprowadzić w oknie zapytania polecenie:

  1. CREATE TABLE users (
  2. u_id int(11) NOT NULL AUTO_INCREMENT,
  3. u_name varchar(32) NOT NULL DEFAULT '',
  4. u_password varchar(40) NOT NULL DEFAULT '',
  5. u_email varchar(64) NOT NULL DEFAULT '',
  6. u_activation_key varchar(40) NOT NULL DEFAULT '',
  7. u_active int(1) NOT NULL DEFAULT '0',
  8. PRIMARY KEY (u_id)
  9. ) ENGINE=MyISAM DEFAULT CHARSET=latin2;


I wyskakuje mi taki błąd:

Cytat
Błąd
zapytanie SQL:

CREATE TABLE users(

u_id int( 11 ) NOT NULL AUTO_INCREMENT ,
u_name varchar( 32 ) NOT NULL default '',
u_password varchar( 40 ) NOT NULL default '',
u_email varchar( 64 ) NOT NULL default '',
u_activation_key varchar( 40 ) NOT NULL default '',
u_active int( 1 ) NOT NULL default '0',
PRIMARY KEY ( u_id )
) ENGINE = MYISAM DEFAULT CHARSET = latin2
MySQL zwrócił komunikat:

#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 'DEFAULT CHARSET=latin2' at line 9



Gdzie w tym poleceniu jest błąd?

@edit

Zmieniłem i dalej błąd :/

Dziękuję, Babcia@Stefa

Ten post edytował Babcia@Stefa 17.09.2006, 16:08:34


--------------------
Środowisko testowe (desktop) - Gedit, lighttpd, sftp, rsync, xfce4-terminal, chromium, firefox4 | System: Gentoo ~x86
O'Neill - serwer WWW @ lighttpd, links, nano, rsyncd, sftpd | System: Debian
Go to the top of the page
+Quote Post

Posty w temacie


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 - 00:04