Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/04/2009, 03:58
quimfv
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Sabadell
Mensajes: 4.897
Antigüedad: 17 años
Puntos: 574
Respuesta: Problema al Hacer Alter Table MySQL

Código sql:
Ver original
  1. ALTER TABLE `puntosdeventa`.`t_puntos_venta`
  2. (
  3. MODIFY COLUMN `NRO_ESTACION` INTEGER UNSIGNED ZEROFILL
  4.                             NOT NULL DEFAULT NULL AUTO_INCREMENT
  5. )
  6. ENGINE = InnoDB;

Creo que el error viene de la cincongruencia

... NOT NULL DEFAULT NULL ....

Código sql:
Ver original
  1. ALTER TABLE `puntosdeventa`.`t_puntos_venta`
  2. (
  3. MODIFY COLUMN `NRO_ESTACION` INTEGER UNSIGNED ZEROFILL
  4.                             NOT NULL DEFAULT AUTO_INCREMENT
  5. )
  6. ENGINE = InnoDB;


Quim