When creating a database either externally or using java code, we must create an attribute Primary key
Autoincrement
called _id
.
With which, if I have in my relational database a id_producto
in a table called Productos
and I wish that id_producto
is also Primary key
and Autoincrement
I can not because the attribute _id
is already Primary key
with which the Primary key
of the table would be composed.
How can this be managed?