current position:Home>What will happen to the database self incrementing primary key?

What will happen to the database self incrementing primary key?

2022-02-04 16:37:31 Alibaba cloud Q & A

What is the problem with database self incrementing primary key ?




Take the answer 1:

Use self incrementing primary key to separate database and table , There may be problems such as duplicate primary keys . The solution , If it's simpler, consider using UUID Ha

A self incrementing primary key generates a table lock , And that leads to problems

Self increasing primary key may run out .


copyright notice
author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/02/202202041637298438.html

Random recommended