I am writing a database application to keep stock and sales how do i fix primary key with random numbers?
Printable View
I am writing a database application to keep stock and sales how do i fix primary key with random numbers?
What you state isn't logical
a Primary Key is suppose to either be unique or auto-incrementing in most cases
Why random numbers?
Stock_Table
Stock_ID - P - Auto Increment Integer
Random_ID - Integer - your Random number