Ver Mensaje Individual
  #1  
Antiguo 06-07-2010
Avatar de Chogo
Chogo Chogo is offline
Miembro
 
Registrado: may 2005
Ubicación: Pto Cortes,Honduras,C.A.
Posts: 148
Reputación: 20
Chogo Va por buen camino
Error al crear Primary Key

Hola y gracias por ver mi mensaje.


Quiero hacer una llave primaria y aqui esta la sentencia que uso


Código SQL [-]ALTER TABLE DETALLE_PLANILLA ADD CONSTRAINT PK_DETALLE_PLANILLA PRIMARY KEY (ID_REG)


pero me genera el siguiente error

Código SQL [-]ISC ERROR MESSAGE: attempt to store duplicate value (visible to active transactions) in unique index "PK_DETALLE_PLANILLA"

Última edición por Chogo fecha: 06-07-2010 a las 19:30:32.
Responder Con Cita