Ver Mensaje Individual
  #4 (permalink)  
Antiguo 17/03/2004, 19:19
Jordi1
 
Fecha de Ingreso: abril-2003
Mensajes: 656
Antigüedad: 21 años, 1 mes
Puntos: 1
Hola,

aparte que los campos text y longtext no llevan definicion de largo el campo INT solo admite hasta 4 bites , o lo que es lo mismo INT(255) desde -2.147 millones hasta +2.147 millones o de 0 a 4.250 millones , aunque no veo para que tang largo

en cuanto al campo text, te admite 65. 535 caracteres , por lo tanto el segundo campo , con text te sobra,

la tabla seria asi para crearla

CREATE TABLE `agenda` (
`id` int(255) unsigned NOT NULL auto_increment,
`nombre` varchar(50) NOT NULL default '',
`resument` text NOT NULL,
`cuerpo` text NOT NULL,
`reciente` varchar(20) NOT NULL default '',
`hoy` varchar(20) NOT NULL default '',
`poximo` varchar(20) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;


espero que te sirva

Un saludo