Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/06/2007, 12:07
Avatar de Diosus
Diosus
 
Fecha de Ingreso: noviembre-2003
Ubicación: Lima
Mensajes: 112
Antigüedad: 20 años, 5 meses
Puntos: 1
Error en mi instruccion SQL

phpmyadmin 2.6.4-pl3 Me rechaza esta orden de SQL, alguien porfavor si me ayuda a encontrar el error, indica

consulta SQL:

--
-- Table structure for table 't_comments'
--
CREATE TABLE `t_comments` ( `c_id` int( 11 ) unsigned NOT NULL AUTO_INCREMENT ,
`c_uid` mediumint( 8 ) unsigned NOT NULL default '0',
`c_mid` mediumint( 8 ) unsigned NOT NULL default '0',
`c_date` timestamp NOT NULL default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
`c_content` varchar( 250 ) NOT NULL default '',
PRIMARY KEY ( `c_id` )
) ENGINE = MYISAM AUTO_INCREMENT =1 DEFAULT CHARSET = latin1



el error es este

MySQL ha dicho:
#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 'CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`c_content` v


Gracias por atencion amigos. Saludos.
__________________
José Olsson G.
MyCoctel PRO