Ver Mensaje Individual
  #3 (permalink)  
Antiguo 17/09/2010, 07:47
albertpg
 
Fecha de Ingreso: enero-2005
Mensajes: 170
Antigüedad: 19 años, 3 meses
Puntos: 0
Respuesta: Error al insertar

gracias! la verdad es que lo tenia bien, peor lo cambie por ' para probar.

Una vez corregido queda asi, y me sale este error:

#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 '
UNIQUE (`id_categoria`),
PRIMARY KEY (`id_categoria`),
) ENGINE=myisam' at line 9


Código MySQL:
Ver original
  1. CREATE TABLE `categories` (
  2.   `id_categoria` INTEGER NOT NULL AUTO_INCREMENT,
  3.   `ct_titol` VARCHAR(100),
  4.   `ct_descripcio` TEXT,
  5.   `cs_titol` VARCHAR(100),
  6.   `cs_descripcio` TEXT,
  7.   `en_titol` VARCHAR(100),
  8.   `en_descripcio` TEXT,
  9.   UNIQUE (`id_categoria`),
  10.   PRIMARY KEY (`id_categoria`),
  11. ) ENGINE=myisam DEFAULT CHARSET=utf8;
  12.  
  13. SET autocommit=1;