Choose between primary Keys

admin

Administrator
Staff member
Hallo every one.

I have to choose between primery keys.
In my situation i can use a name of a product as promaty key. But I can also give de product an ID, and use this as primary key.This will make my code simler.
I supose this has an disadvantige. When I remove a product from the database, a empty space wil remain.
I dont'n know waht to deo .
Can anyone give me an advice?
 
Back
Top