PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
分类索引1772
center计算中心点。
Computes center point.
center ( geometric_type ) → point
几何函数和操作符函数 · 几何函数和操作符
char_length返回字符串中的字符数。
Returns number of characters in the string.
char_length ( text ) → integer
字符串函数和操作符函数 · 字符串函数和操作符
character_length返回字符串中的字符数。
Returns number of characters in the string.
character_length ( text ) → integer
字符串函数和操作符函数 · 字符串函数和操作符
chr返回给定代码的字符。
Returns the character with the given code.
chr ( integer ) → text
字符串函数和操作符函数 · 字符串函数和操作符
circle计算包围矩形框的最小圆。
Computes smallest circle enclosing box.
circle ( box ) → circle
circle ( point, double precision ) → circle
circle ( polygon ) → circle
几何函数和操作符函数 · 几何函数和操作符
clock_timestamp当前日期和时间(在语句执行期间变化);参见第 9.9.5 节
Current date and time (changes during statement execution); see Section 9.9.5
clock_timestamp ( ) → timestamp with time zone
clock_timestamp()
日期/时间函数和操作符函数 · 日期/时间函数和操作符
COALESCECOALESCE函数返回参数中第一个不为 null 的值。
The COALESCE function returns the first of its arguments that is not null.
COALESCE(value [, ...])
条件表达式函数 · 条件表达式
col_description返回表列的注释,列由所属表的 OID 和列号指定。
Returns the comment for a table column, which is specified by the OID of its table and its column number.
col_description ( table oid, column integer ) → text
系统信息函…函数 · 系统信息函数和操作符
concat串接所有参数的文本表示。
Concatenates the text representations of all the arguments.
concat ( val1 "any" [, val2 "any" [, ...] ] ) → text
字符串函数和操作符函数 · 字符串函数和操作符
concat_ws用分隔符串接除第一个参数外的所有参数。
Concatenates all but the first argument, with separators.
concat_ws ( sep text, val1 "any" [, val2 "any" [, ...] ] ) → text
字符串函数和操作符函数 · 字符串函数和操作符
connectbyconnectby ( relname text, keyid_fld text, parent_keyid_fld text [, orderby_fld text ], start_with text, max_depth integer [, branch_delim text ] ) → setof record 生成层次树结构的表示形式。tablefunc — 返回表的函数(crosstab 等) › 提供的函数
convert将表示编码src_encoding的文本的二进制字符串转换为编码dest_encoding的二进制字符串(适用的转换请参阅第 23.3.4 节)。
Converts a binary string representing text in encoding src_encoding to a binary string in encoding dest_encoding (se…函数 · 二进制串函数和操作符
convert_from将表示编码src_encoding的文本的二进制字符串转换为数据库编码中的text。
Converts a binary string representing text in encoding src_encoding to text in the database encoding (see Section 23.3.4 for available conversions)…函数 · 二进制串函数和操作符
convert_to将text字符串(数据库编码)转换为编码dest_encoding中编码的二进制字符串。
Converts a text string (in the database encoding) to a binary string encoded in encoding dest_encoding (see Section 23.3.4 for available conversi…函数 · 二进制串函数和操作符
corr计算相关系数。
Computes the correlation coefficient.
corr ( Y double precision, X double precision ) → double precision
聚合函数函数 · 聚合函数
cos余弦,参数为弧度
Cosine, argument in radians
cos ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
cosd余弦,参数为度数
Cosine, argument in degrees
cosd ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
cosh双曲余弦
Hyperbolic cosine
cosh ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
cot余切,参数为弧度
Cotangent, argument in radians
cot ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
cotd余切,参数为度数
Cotangent, argument in degrees
cotd ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
count计算输入行的数量。
Computes the number of input rows.
count ( * ) → bigint
count ( "any" ) → bigint
聚合函数函数 · 聚合函数
covar_pop计算总体协方差。
Computes the population covariance.
covar_pop ( Y double precision, X double precision ) → double precision
聚合函数函数 · 聚合函数
covar_samp计算样本协方差。
Computes the sample covariance.
covar_samp ( Y double precision, X double precision ) → double precision
聚合函数函数 · 聚合函数
crc32计算二进制字符串的 CRC-32 值。
Computes the CRC-32 value of the binary string.
crc32 ( bytea ) → bigint
二进制串函数和操作符函数 · 二进制串函数和操作符
crc32c计算二进制字符串的 CRC-32C 值。
Computes the CRC-32C value of the binary string.
crc32c ( bytea ) → bigint
二进制串函数和操作符函数 · 二进制串函数和操作符
crosstabcrosstab ( sql text ) → setof record 生成一个“透视表”,其中包含行名以及 N 个值列,其中 N 由调用查询中指定的行类型决定。tablefunc — 返回表的函数(crosstab 等) › 提供的函数
crosstabNcrosstabN ( sql text ) → setof table_crosstab_N 生成一个“透视表”,其中包含行名以及 N 个值列。crosstab2、crosstab3 和 crosstab4 是预定义的,但也可以按下文所述创建额外的 crosstabN 函数。tablefunc — 返回表的函数(crosstab 等) › 提供的函数
cubecube ( float8 ) → cube 创建一个一维立方体,其两个坐标相同。 cube(1) → (1)cube — 多维立方体数据类型 › 用法
cube_dimcube_dim ( cube ) → integer 返回立方体的维数。 cube_dim('(1,2),(3,4)') → 2cube — 多维立方体数据类型 › 用法
cube_distancecube_distance ( cube, cube ) → float8 返回两个立方体之间的距离。如果两个立方体都是点,这就是普通的距离函数。 cube_distance('(1,2)', '(3,4)') → 2.8284271247461903cube — 多维立方体数据类型 › 用法
cube_enlargecube_enlarge ( c cube, r double, n integer ) → cube 以指定的半径 r 在至少 n 个维度上增大立方体的尺寸。如果半径为负,则会改为收缩立方体。所有已定义维度都会按半径 r 调整。左下角坐标减去 r,右上角坐标加上 r。如果某个左下角坐标增加到超过对应的右上角坐标(这只会在 r < 0 时发生),则两个坐标都会被设为它们的平均值…cube — 多维立方体数据类型 › 用法
cube_intercube_inter ( cube, cube ) → cube 生成两个立方体的交集。 cube_inter('(1,2)', '(3,4)') → (3, 4),(1, 2)cube — 多维立方体数据类型 › 用法
cube_is_pointcube_is_point ( cube ) → boolean 如果立方体是一个点,也就是定义它的两个角相同,则返回真。 cube_is_point(cube(1,1)) → tcube — 多维立方体数据类型 › 用法
cube_ll_coordcube_ll_coord ( cube, integer ) → float8 返回立方体左下角的第 n 个坐标值。 cube_ll_coord('(1,2),(3,4)', 2) → 2cube — 多维立方体数据类型 › 用法
cube_subsetcube_subset ( cube, integer[] ) → cube 根据数组中给出的维度索引列表,从现有立方体创建一个新立方体。可用于提取单个维度的端点、删除维度,或者按需要重新排列维度。 cube_subset(cube('(1,3,5),(6,7,8)'), ARRAY[2]) → (3),(7) cube_subset(cube('(1,3,5),(6,7,8)…cube — 多维立方体数据类型 › 用法
cube_unioncube_union ( cube, cube ) → cube 生成两个立方体的并集。 cube_union('(1,2)', '(3,4)') → (1, 2),(3, 4)cube — 多维立方体数据类型 › 用法
cube_ur_coordcube_ur_coord ( cube, integer ) → float8 返回立方体右上角的第 n 个坐标值。 cube_ur_coord('(1,2),(3,4)', 2) → 4cube — 多维立方体数据类型 › 用法
cume_dist计算累积分布,也就是(位于假想行之前或与假想行同等的行数)/(总行数)。
Computes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows).
cume_dist ( args ) WITHIN GROUP (…函数 · 聚合函数
current_catalog返回当前数据库的名称。
Returns the name of the current database.
current_catalog → name
系统信息函数和操作符函数 · 系统信息函数和操作符
current_database返回当前数据库的名称。
Returns the name of the current database.
current_database () → name
系统信息函数和操作符函数 · 系统信息函数和操作符
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开