↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

Wiki / 函数

uuid_extract_version

从符合 RFC 9562 所描述某一变体的 UUID 中提取版本号。对于其他变体,该函数返回 null。例如,对于由 gen_random_uuid() 生成的 UUID,该函数将返回 4。

英文手册覆盖始于 PostgreSQL 7.1. 来源历史与运行验证各自保留独立版本边界。

当前阅读 PG 19·选择有来源记录的版本

group
uuid
group label
Uuid Functions
lang
en
layout
table-new
pages
functions-uuid.html
prose only
false

版本定义 PG 19

从符合 RFC 9562 所描述某一变体的 UUID 中提取版本号。对于其他变体,该函数返回 null。例如,对于由 gen_random_uuid() 生成的 UUID,该函数将返回 4。
uuid_extract_version ( uuid ) → smallint
从符合 RFC 9562 所描述某一变体的 UUID 中提取版本号。对于其他变体,该函数返回 null。例如,对于由 gen_random_uuid() 生成的 UUID,该函数将返回 4。

函数签名与重载

uuid_extract_version ( uuid ) → smallint → smallint
从符合 RFC 9562 所描述某一变体的 UUID 中提取版本号。对于其他变体,该函数返回 null。例如,对于由 gen_random_uuid() 生成的 UUID,该函数将返回 4。

比较版本

来源引用

完整定义与证据 JSON

定义来源

center · PostgreSQL 19 · wiki-repair-20261023:11f1b56854c5c3e63a96043f4d0c31456bd4364f648bcf579e4634ec98ef1518

正文语言: zh-Hans · wiki-repair-20261023:11f1b56854c5c3e63a96043f4d0c31456bd4364f648bcf579e4634ec98ef1518