Hello. What is the best way to generate a manually int primary key with mysql?
I dont want to use the autoincrement feature.
I taught to create a table with one column of type int named sequence. So every time I'm going to insert a new record first check this column and use the value as the primary key. Then after the insert is successful increment the value of sequence.
Is this a good aproach?