Tema: Id en cero
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/09/2009, 12:28
Alber_h
 
Fecha de Ingreso: septiembre-2009
Mensajes: 138
Antigüedad: 14 años, 7 meses
Puntos: 3
Respuesta: Id en cero

-aQUI EN LA TABLA EMPLEADO ESTOY CREANDO UN CAMPO ID CON LOS SIGUIENTES PARAMETROS:


--Campo: Aqui va el nombre del campo que le puse "id".

--Tipo: Aqui va el tipo: le puse int

--Longitud/Valores:le puse 4.

--Prederteminado:Aqui van las siguientes opciones:
-NULL
-CURRENT_TIMESTAMP

*No se que significan estas opciones.nO PUSE NADA.


--Cotejamiento: Aqui van las siguientes opciones:
-armscii8.
-ascii.
-utf8.,etc.

*Tampoco no se que significado tienen estas opciones.NO PUSE NADA.


--Atributos: Aqui van las siguientes opciones:

-Binary.
-Unsigned.
-Unsgned Zerofill.

*Tampoco no se que significado tienen estas opciones.NO PUSE NADA






--NULO:ESTE ES UN CHECKBOX PARA MARCAR:NO MARQUE NADA.





--Indice:Aqui van las siguientes opciones:

-PRIMARY.
-UNIQUE.
-INDEX.
-FULLTEXT.

-aQUI EN ESTA OPCION ESCOGI PRIMARY.



--A_I:ESTE PARAMETRO NO SE QUE SIGNIFICA ESTA COMO CHECK BOX PARA
MARCAR. NO MARQUE ESTA OPCION



--Comentarios:NO PUSE NADA


--MIME-type:Aqui van las siguiente opciones:


-application/octestream.
-image/jpeg.
-image/png.
-text/plain.


*No puse nada.


--Transformacion del Navegador:Aqui van las siguiente opciones:Igual que la opcion MIME-type pero con mas opciones.


*nO PUSE NADA.



--Opciones de transformacion:nO PUSE NADA.

--------------------------------------------------------------------------------------------------------
- CUANDO CREE LA LLAVE CON TODAS ESTAS OPCIONES OMITIENDO ALGUNAS ME SALE EL SIGUIENTE ERROR:


Error
consulta SQL:

ALTER TABLE `empleado` ADD `id` INT( 4 ) NOT NULL FIRST ,
ADD PRIMARY KEY ( id )

MySQL ha dicho:

#1062 - Duplicate entry '0' for key 'PRIMARY'