Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/12/2009, 07:17
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 3 meses
Puntos: 360
Respuesta: Autoincrementar PrimaryKey

Código SQL:
Ver original
  1. ALTER TABLE nombre_tabla MODIFY campo_a_modificar INTEGER PRIMARY KEY AUTO_INCREMENT;

Puede ser integer, smallint, bigint.

saludos
__________________
Without data, You are another person with an opinion.
W. Edwads Deming