PostgreSQL System Columns

PostgreSQL的每个表都包含一些由系统隐式定义的系统列,例如OIDs、事务标识符和命令标识符。虽然这些列的名字不能用作用户定义列的名称,但它们在数据库操作中扮演着特定角色。OIDs不保证全局唯一,建议使用序列生成器来标识行。对于跨表的唯一标识,可以结合tableoid和row OID。自PostgreSQL 8.1起,不推荐使用WITH OIDS创建表,因为WITHOUT OIDS已成为默认选项。此外,长期依赖交易ID的唯一性并不明智,因为它们可能会回绕。
摘要由CSDN通过智能技术生成

5.4. System Columns

Every table has several system columns that are implicitly defined by the system. Therefore, these names cannot be used as names of user-defined columns. (Note that these restrictions are separate from whether the name is a key word or not; quoting a name will not allow you to escape these restrictions.) You do not really need to be concerned about these columns, just know they exist.

 

oid

The object identifier (object ID) of a row. This column is only present if the table was created using WITH OIDS, or if the default_with_oids configuration variable was set at the time

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值