length ( text ) → integer → integer返回字符串中的字符数。
length
返回字符串中的字符数。
英文手册覆盖始于 PostgreSQL 7.1. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
- group
- string
- group label
- String Functions And Operators
- lang
- en
- layout
- table-new
- pages
- functions-string.html, functions-binarystring.html, functions-bitstring.html, functions-geometry.html, functions-textsearch.html
- prose only
- false
- zh from
- 未知
版本定义 PG 18
返回字符串中的字符数。
length ( text ) → integer返回字符串中的字符数。
length ( bytea ) → integer返回二进制字符串中的字节数。
length ( bytes bytea, encoding name ) → integer返回二进制字符串中的字符数,假设它是给定
encoding中的文本。length ( bit ) → integer返回位串中的位数。
length ( geometric_type ) → double precision计算总长度。适用于
lseg、path。length ( tsvector ) → integer返回
tsvector中的词位数。函数签名与重载
length ( bytea ) → integer → integer返回二进制字符串中的字节数。
length ( bytes bytea, encoding name ) → integer → integer返回二进制字符串中的字符数,假设它是给定
encoding中的文本。length ( bit ) → integer → integer返回位串中的位数。
length ( geometric_type ) → double precision → double precision计算总长度。适用于
lseg、path。length ( tsvector ) → integer → integer返回
tsvector中的词位数。比较版本
来源引用
定义来源
center · PostgreSQL 18 · b7bd9cda
正文语言: zh-Hans · ca936764