PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
分类索引1772
lo_getlo_get ( loid oid [, offset bigint, length integer ] ) → bytea 提取大对象的内容,或其中的一个子串。 lo_get(24528, 0, 3) → \xffaaff服务器端函数
lo_putlo_put ( loid oid, offset bigint, data bytea ) → void 从给定偏移量开始把data写入大对象;必要时会扩展该大对象。 lo_put(24528, 1, '\xaa') →服务器端函数
localtime一天中的当前时刻;参见第 9.9.5 节
Current time of day; see Section 9.9.5
localtime → time
localtime ( integer ) → time
LOCALTIME(precision)
日期/时间函数和操作符函数 · 日期/时间函数和操作符
localtimestamp当前日期和时间(当前事务开始时);参见第 9.9.5 节
Current date and time (start of current transaction); see Section 9.9.5
localtimestamp → timestamp
localtimestamp ( integer ) → timestamp
LOCALTIMESTAMP(precisio…函数 · 日期/时间函数和操作符
log以10为底的对数
Base 10 logarithm
log ( numeric ) → numeric
log ( double precision ) → double precision
log ( b numeric, x numeric ) → numeric
数学函数和操作符函数 · 数学函数和操作符
log10以10为底的对数(与 log 相同)
Base 10 logarithm (same as log)
log10 ( numeric ) → numeric
log10 ( double precision ) → double precision
数学函数和操作符函数 · 数学函数和操作符
longitudelongitude ( earth ) → float8 返回地球表面上一个点的经度(以度数形式)。earthdistance — 计算大圆距离 › 基于立方体的地球距离
lower根据数据库的区域设置规则,将字符串转换为全部小写。
Converts the string to all lower case, according to the rules of the database's locale.
lower ( text ) → text
lower ( anyrange ) → anyelement
lower ( anymultirange …函数 · 字符串函数和操作符
lower_inc范围的下界是否包含在内?
Is the range's lower bound inclusive?
lower_inc ( anyrange ) → boolean
lower_inc ( anymultirange ) → boolean
范围/多范围函数和操作符函数 · 范围/多范围函数和操作符
lower_inf范围是否没有下界?(下界为-Infinity时返回假。
Does the range have no lower bound? (A lower bound of -Infinity returns false.)
lower_inf ( anyrange ) → boolean
lower_inf ( anymultirange ) → boolean
范围/多范围函数和操作…函数 · 范围/多范围函数和操作符
lpad在string前面添加字符fill(默认为空格),将其填充到长度length。
Extends the string to length length by prepending the characters fill (a space by default).
lpad ( string text, length integer [, fill text] ) → text
…函数 · 字符串函数和操作符
lseg提取框的对角线作为线段。
Extracts box's diagonal as a line segment.
lseg ( box ) → lseg
lseg ( point, point ) → lseg
几何函数和操作符函数 · 几何函数和操作符
ltree2textltree2text ( ltree ) → text 将ltree类型转换为text。ltree — 层次树状数据类型 › 操作符和函数
ltrim从string的开头移除仅由characters中字符(默认为空格)组成的最长字符串。
Removes the longest string containing only characters in characters (a space by default) from the start of string.
ltrim ( string text [, characte…函数 · 字符串函数和操作符
macaddr8_set7bit将地址的第 7 位设置为 1,生成所谓的修订 EUI-64 格式,以便用于 IPv6 地址。
Sets the 7th bit of the address to one, creating what is known as modified EUI-64, for inclusion in an IPv6 address.
macaddr8_set7bit ( macaddr…函数 · 网络地址函数和操作符
make_date从年、月和日字段创建日期(负数年份表示BC)
Create date from year, month and day fields (negative years signify BC)
make_date ( year int, month int, day int ) → date
日期/时间函数和操作符函数 · 日期/时间函数和操作符
make_interval从年、月、周、日、小时、分钟和秒字段创建时间间隔,每个字段默认为0
Create interval from years, months, weeks, days, hours, minutes and seconds fields, each of which can default to zero
make_interval ( [years int [, months i…函数 · 日期/时间函数和操作符
make_time从小时、分钟和秒字段创建时间
Create time from hour, minute and seconds fields
make_time ( hour int, min int, sec double precision ) → time
日期/时间函数和操作符函数 · 日期/时间函数和操作符
make_timestamp从年、月、日、小时、分钟和秒字段创建时间戳(负数年份表示BC)
Create timestamp from year, month, day, hour, minute and seconds fields (negative years signify BC)
make_timestamp ( year int, month int, day int, hour int, m…函数 · 日期/时间函数和操作符
make_timestamptz从年、月、日、小时、分钟和秒字段并结合时区创建时间戳(负数年份表示 BC)。
Create timestamp with time zone from year, month, day, hour, minute and seconds fields (negative years signify BC).
make_timestamptz ( year int, month …函数 · 日期/时间函数和操作符
make_validmake_valid ( isn ) → isn 清除该值上的“校验位无效”标记。isn — 国际标准编号(ISBN、EAN、UPC 等)的数据类型 › 函数和操作符
makeaclitem使用给定的属性构造aclitem。
Constructs an aclitem with the given properties.
makeaclitem ( grantee oid, grantor oid, privileges text, is_grantable boolean ) → aclitem
系统信息函数和操作符函数 · 系统信息函数和操作符
masklen返回子网掩码长度,以位为单位。
Returns the netmask length in bits.
masklen ( inet ) → integer
网络地址函数和操作符函数 · 网络地址函数和操作符
max计算非空输入值的最大值。
Computes the maximum of the non-null input values.
max ( see text ) → same as input type
聚合函数函数 · 聚合函数
md5计算参数的 MD5 hash,结果以十六进制形式写入。
Computes the MD5 hash of the argument, with the result written in hexadecimal.
md5 ( text ) → text
md5 ( bytea ) → text
字符串函数和操作符函数 · 字符串函数和操作符
merge_action返回为当前行执行的合并操作命令。
Returns the merge action command executed for the current row.
merge_action ( ) → text
合并支持函数函数 · 合并支持函数
min计算非空输入值的最小值。
Computes the minimum of the non-null input values.
min ( see text ) → same as input type
聚合函数函数 · 聚合函数
min_scale精确表示给定值所需的最少小数位数
Minimum scale (number of fractional decimal digits) needed to represent the supplied value precisely
min_scale ( numeric ) → integer
数学函数和操作符函数 · 数学函数和操作符
mody/x的余数;适用于smallint、integer、bigint 和 numeric
Remainder of y/x; available for smallint, integer, bigint, and numeric
mod ( y numeric_type, x numeric_type ) → numeric_type
数学函数和操作符函数 · 数学函数和操作符
mode计算众数,即聚合参数中出现次数最多的值(若多个值的出现次数相同且最多,则任意选择其中第一个)。
Computes the mode, the most frequent value of the aggregated argument (arbitrarily choosing the first one if there are multiple equally-freque…函数 · 聚合函数
multirange返回仅包含给定范围的多范围。
Returns a multirange containing just the given range.
multirange ( anyrange ) → anymultirange
范围/多范围函数和操作符函数 · 范围/多范围函数和操作符
multirange_minus_multi返回从第一个多范围中减去第二个多范围后剩下的非空多范围。
Returns the non-empty multirange(s) remaining after subtracting the second multirange from the first.
multirange_minus_multi ( anymultirange, anymultirange ) → s…函数 · 范围/多范围函数和操作符
mxid_age返回给定多事务 ID 与当前多事务计数器之间的多事务 ID 数。
Returns the number of multixacts IDs between the supplied multixact ID and the current multixacts counter.
mxid_age ( xid ) → integer
系统信息函数和操作符函数 · 系统信息函数和操作符
netmask为地址的网络计算网络掩码。
Computes the network mask for the address's network.
netmask ( inet ) → inet
网络地址函数和操作符函数 · 网络地址函数和操作符
network返回地址的网络部分,将子网掩码右边的部分归零。
Returns the network part of the address, zeroing out whatever is to the right of the netmask.
network ( inet ) → cidr
网络地址函数和操作符函数 · 网络地址函数和操作符
nextval将序列对象推进到下一个值并返回该值。
Advances the sequence object to its next value and returns that value.
nextval ( regclass ) → bigint
序列操作函数函数 · 序列操作函数
nlevelnlevel ( ltree ) → integer 返回路径中的标签数。 nlevel('Top.Child1.Child2') → 3ltree — 层次树状数据类型 › 操作符和函数
normal_randnormal_rand ( numvals integer, mean float8, stddev float8 ) → setof float8 生成一组正态分布的随机值。tablefunc — 返回表的函数(crosstab 等) › 提供的函数
normalize将字符串转换为指定的 Unicode 规范化形式。
Converts the string to the specified Unicode normalization form.
normalize ( text [, form] ) → text
字符串函数和操作符函数 · 字符串函数和操作符
now当前日期和时间(当前事务开始时);参见第 9.9.5 节
Current date and time (start of current transaction); see Section 9.9.5
now ( ) → timestamp with time zone
now()
日期/时间函数和操作符函数 · 日期/时间函数和操作符
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开