Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/06/2010, 01:16
Avatar de erichfrom
erichfrom
 
Fecha de Ingreso: octubre-2004
Mensajes: 148
Antigüedad: 20 años, 3 meses
Puntos: 1
varios auto_increment en misma tabla

Hola a todos, que gusto verlos nuevamente, tengo un reto ojalá alguien sepa
respoderlo:

De que manera puedo poner "varios auto_increment en una misma tabla" por ejemplo la de abajo me da un error:

CREATE TABLE cot (
id int(11) NOT NULL auto_increment,
it int(11) NOT NULL auto_increment,
contenido text,
KEY id (id)
) ENGINE=MyISAM AUTO_INCREMENT=40 DEFAULT CHARSET=utf8;

Me marca este error:
#1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key