MySQL Forums
Forum List  »  Spanish

error clave primaria
Posted by: esteban cuezzo
Date: March 27, 2017 09:48AM

Buenas, tengo un inconveniente tengo una tabla definida asi
IdStockMovfloat unsigned NOT NULL
IdProductoint(10) unsigned NOT NULL
StockAntDepint(11) NOT NULL
StockAntSalint(11) NOT NULL
StockAntResint(11) NOT NULL
CantDepint(11) NOT NULL
CantSalint(11) NOT NULL
CantResint(11) NOT NULL
Fechadate NOT NULL
Horatime NOT NULL
Tablavarchar(45) NOT NULL
IdTablaint(11) NOT NULL
IdEmpleadoint(10) unsigned NOT NULL

el tema es que no se como pero tiene dos claves primarias iguales 2,433,554 y 2,433,554 el insert en esta tabla lo hace un trigger pero creo que no viene por ahi el problema por que sea o no un trigger el que hace el insert no deberia permitierme incertar dos claves iguales ademas que son auto increment en otro foro me dijeron que es por que es float el auto incremet pero lo probe en otras tablas y el auto incremet con float anda bien . no se por que en esta da ese erro ademas de insertar basura en la clave primaria
gracias por su tiempo

Options: ReplyQuote


Subject
Views
Written By
Posted
error clave primaria
1062
March 27, 2017 09:48AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.