PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
分类索引1772
strict_word_similaritystrict_word_similarity ( text, text ) → real 与word_similarity相同,但会强制区段边界与词边界一致。由于不存在跨词的三字符组,这个函数实际上返回的是第一个字符串与第二个字符串中任意连续词区段之间的最大相似度。pg_trgm — 基于三字符组匹配的文本相似度支持 › 函数和操作符
string_agg将非 NULL 输入值连接成一个字符串。
Concatenates the non-null input values into a string.
string_agg ( value text, delimiter text ) → text
string_agg ( value bytea, delimiter bytea ORDER BY input_sort_colu…函数 · 聚合函数
string_to_array将string按delimiter分割,并将结果字段形成text数组。
Splits the string at occurrences of delimiter and forms the resulting fields into a text array.
string_to_array ( string text, delimiter text [, null_stri…函数 · 字符串函数和操作符
string_to_table在出现delimiter 时拆分string,并将结果字段作为text行的集合返回。
Splits the string at occurrences of delimiter and returns the resulting fields as a set of text rows.
string_to_table ( string text, delimiter text…函数 · 字符串函数和操作符
strip从tsvector中移除位置和权重。
Removes positions and weights from the tsvector.
strip ( tsvector ) → tsvector
文本检索函数和操作符函数 · 文本检索函数和操作符
strpos返回substring在string中首次出现的位置;如果不存在则返回零。
Returns first starting index of the specified substring within string, or zero if it's not present.
strpos ( string text, substring text ) → integer
字符串…函数 · 字符串函数和操作符
subarraysubarray ( integer[], start integer, len integer ) → integer[] 提取数组中从位置start开始、长度为 len个元素的部分。 subarray('{1,2,3,2,1}'::integer[], 2, 3) → {2,3,2}intarray — 操作整数数组 › intarray 函数和操作符
subltreesubltree ( ltree, start integer, end integer ) → ltree 返回ltree中从位置start到位置 end-1 的子路径(从 0 开始计数)。 subltree('Top.Child1.Child2', 1, 2) → Child1ltree — 层次树状数据类型 › 操作符和函数
subpathsubpath ( ltree, offset integer, len integer ) → ltree 返回从位置offset开始、长度为 len的ltree子路径。如果offset 为负,则子路径从距路径末尾-offset个标签处开始。如果len 为负,则从路径末尾省去那么多个标签。 subpath('Top.Child1.Child2', 0, 2) → Top.Ch…ltree — 层次树状数据类型 › 操作符和函数
substr提取string中从第start个字符开始的子字符串;若指定了长度,则提取count个字符。
Extracts the substring of string starting at the start'th character, and extending for count characters if that is specified.
substr ( string t…函数 · 字符串函数和操作符
substring提取string的子字符串:若指定了起始位置,则从第start个字符开始;若指定了长度,则在提取count个字符后停止。
Extracts the substring of string starting at the start'th character if that is specified, and stopping after count characters if …函数 · 字符串函数和操作符
sum计算非空输入值的总和。
Computes the sum of the non-null input values.
sum ( smallint ) → bigint
sum ( integer ) → bigint
sum ( bigint ) → numeric
sum ( numeric ) → numeric
sum ( real ) → real
sum ( dou…函数 · 聚合函数
suppress_redundant_updates_trigger抑制不改变数据的更新操作。
Suppresses do-nothing update operations.
suppress_redundant_updates_trigger ( ) → trigger
触发器函数函数 · 触发器函数
svalssvals ( hstore ) → setof text 将hstore的值提取为集合。 svals('a=>1,b=>2') → 1 2hstore — hstore 键/值数据类型 › hstore 操作符和函数
system_user返回用户在被分配数据库角色之前,于认证周期中提供的认证方法和身份(如果有)。
Returns the authentication method and the identity (if any) that the user presented during the authentication cycle before they were assigned a databas…函数 · 系统信息函数和操作符
table_to_xmltable_to_xml映射由参数table传递的命名表的内容。
table_to_xml maps the content of the named table, passed as parameter table.
table_to_xml ( table regclass, nulls boolean, tableforest boolean, targetns text…函数 · XML 函数
table_to_xml_and_xmlschema下面的函数产生 XML 数据映射和对应的 XML 模式,并把产生的结果链接在一起放在一个文档(或森林)中。
In addition, the following functions are available to produce analogous mappings of entire schemas or the entire current database:
table…函数 · XML 函数
table_to_xmlschema必须传入相同的参数,才能得到彼此匹配的 XML 数据映射和 XML 模式文档。
It is essential that the same parameters are passed in order to obtain matching XML data mappings and XML Schema documents.
table_to_xmlschema ( table…函数 · XML 函数
tan正切,参数为弧度
Tangent, argument in radians
tan ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
tand正切,参数为度数
Tangent, argument in degrees
tand ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
tanh双曲正切
Hyperbolic tangent
tanh ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
text以文本形式返回未缩写的IP地址和子网掩码长度。
Returns the unabbreviated IP address and netmask length as text.
text ( inet ) → text
网络地址函数和操作符函数 · 网络地址函数和操作符
text2ltreetext2ltree ( text ) → ltree 将text类型转换为ltree。ltree — 层次树状数据类型 › 操作符和函数
tid_block从元组标识符中提取块号。
Extracts the block number from a tuple identifier.
tid_block ( tid ) → bigint
TID 函数函数 · TID 函数
tid_offset从元组标识符中提取块内的元组偏移量。
Extracts the tuple offset within the block from a tuple identifier.
tid_offset ( tid ) → integer
TID 函数函数 · TID 函数
timeofday当前的日期和时间(类似 clock_timestamp,但是采用 text 字符串);参见第 9.9.5 节
Current date and time (like clock_timestamp, but as a text string); see Section 9.9.5
timeofday ( ) → text
timeofday()
日期/时间函数和操作符函数 · 日期/时间函数和操作符
to_ascii将string从其他编码转换为ASCII,源编码可以用名称或编号指定。
Converts string to ASCII from another encoding, which may be identified by name or number.
to_ascii ( string text ) → text
to_ascii ( string text, encodin…函数 · 字符串函数和操作符
to_bin将数字转换为等价的二进制补码表示。
Converts the number to its equivalent two's complement binary representation.
to_bin ( integer ) → text
to_bin ( bigint ) → text
字符串函数和操作符函数 · 字符串函数和操作符
to_char根据给定的格式将时间戳转换为字符串。
Converts time stamp to string according to the given format.
to_char ( timestamp, text ) → text
to_char ( timestamp with time zone, text ) → text
to_char ( interval, text …函数 · 数据类型格式化函数
to_date根据给定的格式将字符串转换为日期。
Converts string to date according to the given format.
to_date ( text, text ) → date
数据类型格式化函数函数 · 数据类型格式化函数
to_hex将数字转换为等价的二进制补码的十六进制表示。
Converts the number to its equivalent two's complement hexadecimal representation.
to_hex ( integer ) → text
to_hex ( bigint ) → text
字符串函数和操作符函数 · 字符串函数和操作符
to_json将任何SQL值转换为json或jsonb。
Converts any SQL value to json or jsonb.
to_json ( anyelement ) → json
JSON 函数和操作符函数 · JSON 函数和操作符
to_jsonb将任何SQL值转换为json或jsonb。
Converts any SQL value to json or jsonb.
to_jsonb ( anyelement ) → jsonb
JSON 函数和操作符函数 · JSON 函数和操作符
to_number根据给定的格式将字符串转换为数值。
Converts string to numeric according to the given format.
to_number ( text, text ) → numeric
数据类型格式化函数函数 · 数据类型格式化函数
to_oct将数字转换为等价的二进制补码的八进制表示。
Converts the number to its equivalent two's complement octal representation.
to_oct ( integer ) → text
to_oct ( bigint ) → text
字符串函数和操作符函数 · 字符串函数和操作符
to_regclass将文本关系名转换为它的OID。
Translates a textual relation name to its OID.
to_regclass ( text ) → regclass
系统信息函数和操作符函数 · 系统信息函数和操作符
to_regcollation将文本排序规则名称转换为它的OID。
Translates a textual collation name to its OID.
to_regcollation ( text ) → regcollation
系统信息函数和操作符函数 · 系统信息函数和操作符
to_regdatabase将文本数据库名转换为它的OID。
Translates a textual database name to its OID.
to_regdatabase ( text ) → regdatabase
系统信息函数和操作符函数 · 系统信息函数和操作符
to_regnamespace将文本模式名转换为它的OID。
Translates a textual schema name to its OID.
to_regnamespace ( text ) → regnamespace
系统信息函数和操作符函数 · 系统信息函数和操作符
to_regoper将文本操作符名称转换为它的OID。
Translates a textual operator name to its OID.
to_regoper ( text ) → regoper
系统信息函数和操作符函数 · 系统信息函数和操作符
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开