PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
分类索引1772
current_date当前日期;参见第 9.9.5 节
Current date; see Section 9.9.5
current_date → date
日期/时间函数和操作符函数 · 日期/时间函数和操作符
current_query返回客户端提交的当前正在执行的查询文本(可能包含多条语句)。
Returns the text of the currently executing query, as submitted by the client (which might contain more than one statement).
current_query () → text
系统信息函数和操作符函数 · 系统信息函数和操作符
current_role这个等同于 current_user。
This is equivalent to current_user.
current_role → name
系统信息函数和操作符函数 · 系统信息函数和操作符
current_schema返回在搜索路径中的第一个模式的名称(如果搜索路径为空则返回空值)。
Returns the name of the schema that is first in the search path (or a null value if the search path is empty).
current_schema → name
current_schema () → nam…函数 · 系统信息函数和操作符
current_schemas返回当前有效搜索路径中所有模式名称的数组,按优先级排序。
Returns an array of the names of all schemas presently in the effective search path, in their priority order.
current_schemas ( include_implicit boolean ) → name…函数 · 系统信息函数和操作符
current_setting返回设置setting_name的当前值。
Returns the current value of the setting setting_name.
current_setting ( setting_name text [, missing_ok boolean] ) → text
系统管理函数函数 · 系统管理函数
current_time一天中的当前时刻;参见第 9.9.5 节
Current time of day; see Section 9.9.5
current_time → time with time zone
current_time ( integer ) → time with time zone
CURRENT_TIME(precision)
日期/时间函数和操作符函数 · 日期/时间函数和操作符
current_timestamp当前日期和时间(当前事务开始时);参见第 9.9.5 节
Current date and time (start of current transaction); see Section 9.9.5
current_timestamp → timestamp with time zone
current_timestamp ( integer ) → timestamp wi…函数 · 日期/时间函数和操作符
current_user返回当前执行上下文的用户名。
Returns the user name of the current execution context.
current_user → name
系统信息函数和操作符函数 · 系统信息函数和操作符
currval返回当前会话中最近一次针对该序列调用nextval所获得的值。
Returns the value most recently obtained by nextval for this sequence in the current session.
currval ( regclass ) → bigint
序列操作函数函数 · 序列操作函数
cursor_to_xmltable_to_xml映射由参数table传递的命名表的内容。
table_to_xml maps the content of the named table, passed as parameter table.
cursor_to_xml ( cursor refcursor, count integer, nulls boolean, tableforest bool…函数 · XML 函数
cursor_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.
cursor_to_xmlschema ( curs…函数 · XML 函数
database_to_xml这些函数会忽略当前用户不可读的表。
These functions ignore tables that are not readable by the current user.
database_to_xml ( nulls boolean, tableforest boolean, targetns text ) → xml
XML 函数函数 · XML 函数
database_to_xml_and_xmlschema这些函数会忽略当前用户不可读的表。
These functions ignore tables that are not readable by the current user.
database_to_xml_and_xmlschema ( nulls boolean, tableforest boolean, targetns text ) → xml
XML 函数函数 · XML 函数
database_to_xmlschema这些函数会忽略当前用户不可读的表。
These functions ignore tables that are not readable by the current user.
database_to_xmlschema ( nulls boolean, tableforest boolean, targetns text ) → xml
XML 函数函数 · XML 函数
date_add将一个 interval 加到 timestamp with time zone 上,并根据第三个参数命名的时区,或在省略该参数时根据当前TimeZone设置,计算时刻和夏令时调整。
Add an interval to a timestamp with time zone, computing times of day and daylight-savings adjustm…函数 · 日期/时间函数和操作符
date_bin将输入按指定的间隔进行分箱(bin),对齐到指定的原点;参见第 9.9.3 节
Bin input into specified interval aligned with specified origin; see Section 9.9.3
date_bin ( interval, timestamp, timestamp ) → timestamp
date_bin(st…函数 · 日期/时间函数和操作符
date_part获取时间戳子字段(等同于 extract);参见第 9.9.1 节
Get timestamp subfield (equivalent to extract); see Section 9.9.1
date_part ( text, timestamp ) → double precision
date_part ( text, interval ) → double pre…函数 · 日期/时间函数和操作符
date_subtract从一个 timestamp with time zone 中减去 interval,并根据第三个参数命名的时区,或在省略该参数时根据当前TimeZone设置,计算时刻和夏令时调整。
Subtract an interval from a timestamp with time zone, computing times of day and daylight-savings a…函数 · 日期/时间函数和操作符
date_trunc截断到指定的精度;参见第 9.9.2 节
Truncate to specified precision; see Section 9.9.2
date_trunc ( text, timestamp ) → timestamp
date_trunc ( text, timestamp with time zone, text ) → timestamp with time z…函数 · 日期/时间函数和操作符
debugdebug ( number ) → 与输入类型相同 将参数打印到stderr,并返回参数。 debug(5432.1) → 5432.1pgbench › 注解 › 内置函数
decode从文本表示中解码二进制数据;支持的format值与encode相同。
Decodes binary data from a textual representation; supported format values are the same as for encode.
decode ( string text, format text ) → bytea
二进制串函数和操…函数 · 二进制串函数和操作符
defineddefined ( hstore, text ) → boolean 该hstore是否包含该键的非NULL值? defined('a=>NULL', 'a') → fhstore — hstore 键/值数据类型 › hstore 操作符和函数
degrees将弧度转换为角度
Converts radians to degrees
degrees ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
deletedelete ( hstore, text ) → hstore 删除具有匹配键的键/值对。 delete('a=>1,b=>2', 'b') → "a"=>"1"hstore — hstore 键/值数据类型 › hstore 操作符和函数
dense_rank计算假想行的排名,没有空缺;此函数实际上对同等行组进行计数。
Computes the rank of the hypothetical row, without gaps; this function effectively counts peer groups.
dense_rank ( args ) WITHIN GROUP ( ORDER BY sorted_args …函数 · 聚合函数
diagonal提取框的对角线作为线段(与 lseg(box)相同)。
Extracts box's diagonal as a line segment (same as lseg(box)).
diagonal ( box ) → lseg
几何函数和操作符函数 · 几何函数和操作符
diameter计算圆的直径。
Computes diameter of circle.
diameter ( circle ) → double precision
几何函数和操作符函数 · 几何函数和操作符
divy/x 的整数商(向零截断)
Integer quotient of y/x (truncates towards zero)
div ( y numeric, x numeric ) → numeric
数学函数和操作符函数 · 数学函数和操作符
doubledouble ( number ) → double 转换为 double。 double(5432) → 5432.0pgbench › 注解 › 内置函数
eacheach ( hstore ) → setof record ( key text, value text ) 将hstore的键和值提取为记录集。 select * from each('a=>1,b=>2') → key | value -----+------- a | 1 b | 2hstore — hstore 键/值数据类型 › hstore 操作符和函数
earthearth () → float8 返回假定的地球半径。earthdistance — 计算大圆距离 › 基于立方体的地球距离
earth_boxearth_box ( earth, float8 ) → cube 返回一个适合索引搜索的框,可结合 cube @> 操作符查找距离某个位置给定大圆距离以内的点。这个框中的某些点到该位置的大圆距离会超过指定值,因此查询中还应当包含一次使用 earth_distance 的二次检查。earthdistance — 计算大圆距离 › 基于立方体的地球距离
earth_distanceearth_distance ( earth, earth ) → float8 返回地球表面上两个点之间的大圆距离。earthdistance — 计算大圆距离 › 基于立方体的地球距离
encode将二进制数据编码成文本表示;支持的format值为:base32hex, base64, base64url, escape, hex。
Encodes binary data into a textual representation; supported format values are: base32hex, base64, base64url, escape, hex…函数 · 二进制串函数和操作符
enum_first返回输入枚举类型的第一个值。
Returns the first value of the input enum type.
enum_first ( anyenum ) → anyenum
枚举支持函数函数 · 枚举支持函数
enum_last返回输入枚举类型的最后一个值。
Returns the last value of the input enum type.
enum_last ( anyenum ) → anyenum
枚举支持函数函数 · 枚举支持函数
enum_range将输入枚举类型的所有值作为一个有序的数组返回。
Returns all values of the input enum type in an ordered array.
enum_range ( anyenum ) → anyarray
enum_range ( anyenum, anyenum ) → anyarray
枚举支持函数函数 · 枚举支持函数
erf误差函数
Error function
erf ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
erfc互补误差函数(1 - erf(x),对较大输入不会损失精度)
Complementary error function (1 - erf(x), without loss of precision for large inputs)
erfc ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开