如何在 Pervasive 中自动递增一个 big int

How to Auto-Increment a big int in Pervasive

使用 graphical table editor,在 Pervasive 13 中,如何将 big int 设置为唯一的自动递增 id?

列类型可以设置为AUTOINC(8)以指定一个自动递增的8字节序列号。

http://docs.actian.com/psql/PSQLv13/index.html#page/sqlref/sqldtype.htm

根据 ZEN (PSQL) v13 的 documentation,它说:

Btrieve
In Btrieve operations, the length of the AUTOINC data type can now be 8 bytes as well as 2 or 4 bytes. The new length is available in files using 9.5 format and later. Btrieve files using the new 8-byte AUTOINC segment cannot be opened by engines from earlier releases.

Zen (PSQL) 引擎的 SQL 端似乎无法使用 8 字节整数,只能从 Btrieve API 获得。

可能能够创建具有 8 字节自动增量的文件,然后为 table 创建一个 SQL 定义,但我不会当然。您不能从图形 table 编辑器中执行此操作。