PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
分类索引1772
uniquniq ( integer[] ) → integer[] 移除相邻的重复项。常与sort一起使用,以移除所有重复项。 uniq('{1,2,2,3,1,1}'::integer[]) → {1,2,3,1} uniq(sort('{1,2,3,2,1}'::integer[])) → {1,2,3}intarray — 操作整数数组 › intarray 函数和操作符
unistr解析参数中转义的 Unicode 字符。
Evaluate escaped Unicode characters in the argument.
unistr ( text ) → text
字符串函数和操作符函数 · 字符串函数和操作符
unnest将tsvector展开为一组行,每行对应一个词位。
Expands a tsvector into a set of rows, one per lexeme.
unnest ( tsvector ) → setof record ( lexeme text, positions smallint[], weights text )
unnest ( anyarray ) → …函数 · 文本检索函数和操作符
upper根据数据库的区域设置规则,将字符串转换为全部大写。
Converts the string to all upper case, according to the rules of the database's locale.
upper ( text ) → text
upper ( anyrange ) → anyelement
upper ( anymultirange …函数 · 字符串函数和操作符
upper_inc范围的上界是否包含在内?
Is the range's upper bound inclusive?
upper_inc ( anyrange ) → boolean
upper_inc ( anymultirange ) → boolean
范围/多范围函数和操作符函数 · 范围/多范围函数和操作符
upper_inf范围是否没有上界?(上界为Infinity时返回假。
Does the range have no upper bound? (An upper bound of Infinity returns false.)
upper_inf ( anyrange ) → boolean
upper_inf ( anymultirange ) → boolean
范围/多范围函数和操作符函数 · 范围/多范围函数和操作符
user这个相当于 current_user。
This is equivalent to current_user.
user → name
系统信息函数和操作符函数 · 系统信息函数和操作符
uuid_extract_timestamp从版本 1、6 或 7 的 UUID 中提取 timestamp with time zone。
Extracts a timestamp with time zone from a UUID of version 1, 6, or 7.
uuid_extract_timestamp ( uuid ) → timestamp with time zone
UUID 函数函数 · UUID 函数
uuid_extract_version从符合 RFC 9562 所描述某一变体的 UUID 中提取版本号。
Extracts the version from a UUID of one of the variants described by RFC 9562.
uuid_extract_version ( uuid ) → smallint
UUID 函数函数 · UUID 函数
uuid_generate_v1uuid_generate_v1 () → uuid 生成一个版本 1 UUID。这会用到计算机的 MAC 地址和时间戳。注意,这类 UUID 会暴露创建该标识符的计算机身份以及创建时间,因而可能不适合某些对安全较为敏感的应用。uuid-ossp — UUID 生成器 › uuid-ossp 函数
uuid_generate_v1mcuuid_generate_v1mc () → uuid 生成一个版本 1 UUID,但会使用随机的组播 MAC 地址,而不是计算机的真实 MAC 地址。uuid-ossp — UUID 生成器 › uuid-ossp 函数
uuid_generate_v3uuid_generate_v3 ( namespace uuid, name text ) → uuid 使用指定的输入名称,在给定的名字空间中生成一个版本 3 UUID。该名字空间应当是由uuid_ns_*()函数生成的特殊常量之一,如表 F.36所示。(理论上也可以是任意 UUID。)该名称是在所选名字空间中的一个标识符。 例如: SELECT uuid_generate…uuid-ossp — UUID 生成器 › uuid-ossp 函数
uuid_generate_v4uuid_generate_v4 () → uuid 生成一个版本 4 UUID,它完全来源于随机数。uuid-ossp — UUID 生成器 › uuid-ossp 函数
uuid_generate_v5uuid_generate_v5 ( namespace uuid, name text ) → uuid 生成一个版本 5 UUID,它的工作方式与版本 3 UUID 类似,只是使用 SHA-1 作为 hash 方法。由于 SHA-1 被认为比 MD5 更安全,因此通常应优先使用版本 5 而不是版本 3。uuid-ossp — UUID 生成器 › uuid-ossp 函数
uuid_niluuid_nil () → uuid 返回一个“nil” UUID 常量,它不会作为真正的 UUID 出现。uuid-ossp — UUID 生成器 › uuid-ossp 函数
uuid_ns_dnsuuid_ns_dns () → uuid 返回一个表示 UUID 的 DNS 名字空间的常量。uuid-ossp — UUID 生成器 › uuid-ossp 函数
uuid_ns_oiduuid_ns_oid () → uuid 返回一个表示 UUID 的 ISO 对象标识符(OID)名字空间的常量。(这里指的是 ASN.1 OID,与PostgreSQL中使用的 OID 无关。)uuid-ossp — UUID 生成器 › uuid-ossp 函数
uuid_ns_urluuid_ns_url () → uuid 返回一个表示 UUID 的 URL 名字空间的常量。uuid-ossp — UUID 生成器 › uuid-ossp 函数
uuid_ns_x500uuid_ns_x500 () → uuid 返回一个表示 UUID 的 X.500 可分辨名称(DN)名字空间的常量。uuid-ossp — UUID 生成器 › uuid-ossp 函数
uuidv4生成一个版本 4(随机)的 UUID
Generates a version 4 (random) UUID
uuidv4 ( ) → uuid
UUID 函数函数 · UUID 函数
uuidv7生成一个版本 7(按时间排序)的 UUID。
Generates a version 7 (time-ordered) UUID.
uuidv7 ( [shift interval] ) → uuid
UUID 函数函数 · UUID 函数
var_pop计算输入值的总体方差(总体标准差的平方)。
Computes the population variance of the input values (square of the population standard deviation).
var_pop ( numeric_type ) → double precision for real or double preci…函数 · 聚合函数
var_samp计算输入值的样本方差(样本标准差的平方)。
Computes the sample variance of the input values (square of the sample standard deviation).
var_samp ( numeric_type ) → double precision for real or double precision, o…函数 · 聚合函数
variance这是 var_samp 的一个历史别名。
This is a historical alias for var_samp.
variance ( numeric_type ) → double precision for real or double precision, otherwise numeric
聚合函数函数 · 聚合函数
version返回描述PostgreSQL 服务器版本的字符串。
Returns a string describing the PostgreSQL server's version.
version () → text
系统信息函数和操作符函数 · 系统信息函数和操作符
websearch_to_tsquery将文本转换为tsquery,根据指定的或默认配置对单词进行正规化。
Converts text to a tsquery, normalizing words according to the specified or default configuration.
websearch_to_tsquery ( [config regconfig, ] query text ) …函数 · 文本检索函数和操作符
width计算框的水平大小。
Computes horizontal size of box.
width ( box ) → double precision
几何函数和操作符函数 · 几何函数和操作符
width_bucket返回直方图中包含 operand 的桶编号。
Returns the number of the bucket in which operand falls in a histogram having count equal-width buckets spanning the range low to high.
width_bucket ( operand numeric,…函数 · 数学函数和操作符
word_similarityword_similarity ( text, text ) → real 返回一个数值,表示第一个字符串中的三字符组集合与第二个字符串中的有序三字符组集合中任意连续区段之间的最大相似度。详见下文说明。pg_trgm — 基于三字符组匹配的文本相似度支持 › 函数和操作符
xml_is_well_formed这些函数检查一个text串是不是一个良构的 XML,返回一个布尔结果。
These functions check whether a text string represents well-formed XML, returning a Boolean result.
xml_is_well_formed ( text ) → boolean
XML 函数函数 · XML 函数
xml_is_well_formed_content这些函数检查一个text串是不是一个良构的 XML,返回一个布尔结果。
These functions check whether a text string represents well-formed XML, returning a Boolean result.
xml_is_well_formed_content ( text ) → boolean
XML 函数函数 · XML 函数
xml_is_well_formed_document这些函数检查一个text串是不是一个良构的 XML,返回一个布尔结果。
These functions check whether a text string represents well-formed XML, returning a Boolean result.
xml_is_well_formed_document ( text ) → boolean
XML 函数函数 · XML 函数
xml_validxml_valid ( document text ) → boolean 解析给定文档,如果该文档是良构 XML,则返回 true。(注意:这是标准 PostgreSQL 函数 xml_is_well_formed() 的别名。名称 xml_valid() 从技术上说并不正确,因为在 XML 中,有效性与良构性含义不同。)xml2 — XPath 查询与 XSLT 功能 › 函数说明
xmlagg和这里描述的其他函数不同,函数xmlagg是一个聚合函数。
The function xmlagg is, unlike the other functions described here, an aggregate function.
xmlagg ( xml ) → xml
xmlagg ( xml ORDER BY input_sort_columns ) → xml
…函数 · XML 函数
xmlcomment函数xmlcomment创建了一个 XML 值,它包含一个使用指定文本作为内容的 XML 注释。
The function xmlcomment creates an XML value containing an XML comment with the specified text as content.
xmlcomment ( text ) → xml
XML 函数函数 · XML 函数
xmlconcat函数xmlconcat将由各个独立 XML 值组成的列表串接成一个单独的值,这个值包含一个 XML 内容片段。
The function xmlconcat concatenates a list of individual XML values to create a single value containing an XML content fragment.
xmlco…函数 · XML 函数
xmlelement表达式xmlelement使用给定名称、属性和内容产生一个 XML 元素。
The xmlelement expression produces an XML element with the given name, attributes, and content.
xmlelement ( NAME name [, XMLATTRIBUTES ( attvalue [AS a…函数 · XML 函数
XMLEXISTS函数xmlexists对一个 XPath 1.0 表达式(第一个参数)求值,以传递的XML值作为其上下文项。
The function xmlexists evaluates an XPath 1.0 expression (the first argument), with the passed XML value as its context item.
XMLEXISTS…函数 · XML 函数
xmlforest表达式xmlforest使用给定名称和内容产生由元素构成的 XML 森林(序列)。
The xmlforest expression produces an XML forest (sequence) of elements using the given names and content.
xmlforest ( content [AS name] [, ...] ) → …函数 · XML 函数
xmlpi表达式xmlpi创建一个 XML 处理指令。
The xmlpi expression creates an XML processing instruction.
xmlpi ( NAME name [, content] ) → xml
XML 函数函数 · XML 函数
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开