Para criar esta tabela aqui ó...
CREATE TABLE useronline (
timestamp int(15) DEFAULT '0' NOT NULL,
ip varchar(40) NOT NULL,
arquivo varchar(100) NOT NULL,
PRIMARY KEY (timestamp),
KEY ip (ip),
KEY file (file)
);
Onde eu tenho que colocar este código lá no phpmyadmin para criar esta tabela?
Esta dando o seguinte erro quando eu tento inserir ou importar...tipo...eu coloquei este código dentro de um bloco de notas e renomeei o mesmo para online.sql mas não adiantou olhem:
Erroconsulta SQL: useronline(timestamp int( 15 ) DEFAULT '0' NOT NULL , ip varchar( 40 ) NOT NULL , arquivo varchar( 100 ) NOT NULL , PRIMARY KEY ( timestamp ) , KEY ip( ip ) , KEY FILE ( FILE ) ) Mensagens do MySQL : #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 'useronline ( timestamp int(15) DEFAULT '0' NOT NULL, ip varchar(' at line 1
Agradeço quem poder me ajudar! http://forum.imasters.com.br/public/style_emoticons/default/thumbsup.gif
Discussão (4)
Carregando comentários...