我正在使用可扩展存储引擎并想要一个唯一的列(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.
关于c++ - 使用 Microsoft 的可扩展存储引擎创建一个唯一的、自动分配的变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2301363/