Tema: SQL syntax
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/05/2003, 17:41
Avatar de Nukelino
Nukelino
 
Fecha de Ingreso: abril-2003
Ubicación: Buenos Aires
Mensajes: 116
Antigüedad: 21 años
Puntos: 0
Pregunta SQL syntax

Intento crear esta tabla pero me tira error.....


SQL-query :

CREATE TABLE IF NOT EXISTS site_ww_settings(

mid int( 10 ) NOT NULL auto_increment,
title varchar( 255 ) NOT NULL default '',
active int( 1 ) NOT NULL default '0',
ancss int( 1 ) NOT NULL default '0',
animg int( 1 ) NOT NULL default '0',
anupl int( 1 ) NOT NULL default '0',
ansml int( 1 ) NOT NULL default '0',
aucss int( 1 ) NOT NULL default '0',
auimg int( 1 ) NOT NULL default '1',
auupl int( 1 ) NOT NULL default '0',
ausml int( 1 ) NOT NULL default '1',
adcss int( 1 ) NOT NULL default '1',
adimg int( 1 ) NOT NULL default '1',
adupl int( 1 ) NOT NULL default '1',
adsml int( 1 ) NOT NULL default '1',
PRIMARY KEY ( mid ) ,
KEY mid ( mid ) ,
KEY title( title )
)

MySQL said:


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 'mid( mid ) , KEY title( title ) )' at line 1
Back