Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 id 字段,其中 id 是串行的,并且在同一个表中我有唯一的约束。这里的问题是,如果当前 ID 值为 5,则唯一约束失败,然后在失败后下一个 ID 值变为 7。实际上我需要为下一个 ID 值获取 6。任何人都可以帮忙吗?