uuid_extract_version ( uuid ) → smallint → smallint从符合 RFC 9562 所描述某一变体的 UUID 中提取版本号。对于其他变体,该函数返回 null。例如,对于由
gen_random_uuid()生成的 UUID,该函数将返回 4。从符合 RFC 9562 所描述某一变体的 UUID 中提取版本号。对于其他变体,该函数返回 null。例如,对于由gen_random_uuid()生成的 UUID,该函数将返回 4。
英文手册覆盖始于 PostgreSQL 7.1. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
uuid_extract_version ( uuid ) → smallint → smallint从符合 RFC 9562 所描述某一变体的 UUID 中提取版本号。对于其他变体,该函数返回 null。例如,对于由
gen_random_uuid()生成的 UUID,该函数将返回 4。center · PostgreSQL 18 · 2026-09-14T13:14:25.684213+00:00@99e6866c
正文语言: zh-Hans · ca936764