Consulta:
Código:
Error:create table periodo_abono( idPeriodoAbono int(11) NOT NULL auto_increment, precio int(5) NOT NULL , f_inicio date NOT NULL, f_fin date default NULL, idAbono int(11) NOT NULL, constraint periodo_abono_pkey primary key (idAbono,idPeriodoAbono), constraint periodo_abono_fkey foreign key (idAbono) References abono(idAbono) )ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci AUTO_INCREMENT=1;
Código:
Y no se donde puede estar el error... #1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key