gpt4 book ai didi

c++ - 使用 Microsoft 的可扩展存储引擎创建一个唯一的、自动分配的变量

转载 作者:行者123 更新时间:2023-11-28 03:58:23 25 4
gpt4 key购买 nike

我正在使用可扩展存储引擎并想要一个唯一的列(32 位宽)。我需要此列中的值由数据库自动分配

我希望找到可以屏蔽的类似 JET_bitIndexUnique 的东西?

如果没有这样的面具,实现目标的正确方法是什么?

最佳答案

请参阅:Version, Auto-Increment and Escrow Columns

Auto increment columns are automatically incremented by ESE when a new record is inserted into the table. The value contained in the auto-increment column is unique for every record in the table and is not guaranteed to be continuous. These values are not recycled, but can be reused in certain cases. Only columns of type JET_coltypLong (Long) and JET_coltypLongLong (Currency) may be auto increment columns.

维基:Extensible Storage Engine

关于c++ - 使用 Microsoft 的可扩展存储引擎创建一个唯一的、自动分配的变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2301363/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com