PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
分类索引1772
json_each将顶级JSON对象展开为一组键/值对。
Expands the top-level JSON object into a set of key/value pairs.
json_each ( json ) → setof record ( key text, value json )
JSON 函数和操作符函数 · JSON 函数和操作符
json_each_text将顶级 JSON 对象展开为一组键/值对。
Expands the top-level JSON object into a set of key/value pairs.
json_each_text ( json ) → setof record ( key text, value text )
JSON 函数和操作符函数 · JSON 函数和操作符
JSON_EXISTS如果将 SQL/JSON path_expression 应用于 context_item 后产生了任何项,则返回 true,否则返回 false。
JSON_EXISTS ( context_item, path_expression [PASSING { value AS varname } [, ...]] [{ TRUE | FALSE | UNKNOWN | ERRO…函数 · JSON 函数和操作符
json_extract_path在指定路径下提取JSON子对象。
Extracts JSON sub-object at the specified path.
json_extract_path ( from_json json, VARIADIC path_elems text[] ) → json
JSON 函数和操作符函数 · JSON 函数和操作符
json_extract_path_text将指定路径上的 JSON 子对象提取为text。
Extracts JSON sub-object at the specified path as text.
json_extract_path_text ( from_json json, VARIADIC path_elems text[] ) → text
JSON 函数和操作符函数 · JSON 函数和操作符
json_object根据给定的所有键值对构造 JSON 对象;如果没有给出键值对,则构造空对象。
Constructs a JSON object of all the key/value pairs given, or an empty object if none are given.
json_object ( [ { key_expression { VALUE | ':' } value…函数 · JSON 函数和操作符
json_object_agg将所有键/值对收集到一个JSON对象中。
Collects all the key/value pairs into a JSON object.
json_object_agg ( key "any", value "any" ORDER BY input_sort_columns ) → json
聚合函数函数 · 聚合函数
json_object_agg_strict将所有键/值对收集到一个JSON对象中。
Collects all the key/value pairs into a JSON object.
json_object_agg_strict ( key "any", value "any" ) → json
聚合函数函数 · 聚合函数
json_object_agg_unique将所有键/值对收集到一个JSON对象中。
Collects all the key/value pairs into a JSON object.
json_object_agg_unique ( key "any", value "any" ) → json
聚合函数函数 · 聚合函数
json_object_agg_unique_strict将所有键/值对收集到一个JSON对象中。
Collects all the key/value pairs into a JSON object.
json_object_agg_unique_strict ( key "any", value "any" ) → json
聚合函数函数 · 聚合函数
json_object_keys返回顶级JSON对象中的键集合。
Returns the set of keys in the top-level JSON object.
json_object_keys ( json ) → setof text
JSON 函数和操作符函数 · JSON 函数和操作符
json_objectagg行为与json_object相同,只是它作为一个聚合函数,因此只接受一个 key_expression参数和一个 value_expression参数。
Behaves like json_object, but as an aggregate function, so it only takes one key_expression and one value_express…函数 · 聚合函数
json_populate_record将顶级 JSON 对象展开为一行,其复合类型与base参数相同。
Expands the top-level JSON object to a row having the composite type of the base argument.
json_populate_record ( base anyelement, from_json json ) → anyelem…函数 · JSON 函数和操作符
json_populate_recordset将由对象组成的顶级 JSON 数组展开为一组行,其复合类型与base参数相同。
Expands the top-level JSON array of objects to a set of rows having the composite type of the base argument.
json_populate_recordset ( base anyelement…函数 · JSON 函数和操作符
JSON_QUERY返回将 SQL/JSON path_expression 应用于 context_item 的结果。
JSON_QUERY ( context_item, path_expression [PASSING { value AS varname } [, ...]] [RETURNING data_type [FORMAT JSON [ENCODING UTF8] ] ] [ {…函数 · JSON 函数和操作符
json_scalar将给定的 SQL 标量值转换为 JSON 标量值。
Converts a given SQL scalar value into a JSON scalar value.
json_scalar ( expression )
JSON 函数和操作符函数 · JSON 函数和操作符
json_serialize将 SQL/JSON 表达式转换为字符或二进制字符串。
Converts an SQL/JSON expression into a character or binary string.
json_serialize ( expression [FORMAT JSON [ENCODING UTF8] ] [RETURNING data_type [FORMAT JSON [E…函数 · JSON 函数和操作符
json_strip_nulls递归地删除给定 JSON 值中所有值为 null 的对象字段。
Deletes all object fields that have null values from the given JSON value, recursively.
json_strip_nulls ( target json [,strip_in_arrays boolean] ) → json
JSO…函数 · JSON 函数和操作符
JSON_TABLE下面更详细地说明每个语法元素。
Each syntax element is described below in more detail.
JSON_TABLE ( context_item, path_expression [ AS json_path_name] [ PASSING { value AS varname } [, ...] ] COLUMNS ( json…函数 · JSON 函数和操作符
json_to_record将顶级JSON对象展开为具有由 AS子句定义的复合类型的行。
Expands the top-level JSON object to a row having the composite type defined by an AS clause.
json_to_record ( json ) → record
JSON 函数和操作符函数 · JSON 函数和操作符
json_to_recordset将顶级JSON对象数组展开为一组由AS子句定义的复合类型的行。
Expands the top-level JSON array of objects to a set of rows having the composite type defined by an AS clause.
json_to_recordset ( json ) → setof record
JSON…函数 · JSON 函数和操作符
json_to_tsvector选择filter请求的JSON文档中的每个项,并将每个项转换为tsvector,根据指定的或默认配置对单词进行正规化。
Selects each item in the JSON document that is requested by the filter and converts each one to a tsvector, normalizing words acco…函数 · 文本检索函数和操作符
json_typeof以文本字符串形式返回顶级JSON值的类型。
Returns the type of the top-level JSON value as a text string.
json_typeof ( json ) → text
JSON 函数和操作符函数 · JSON 函数和操作符
JSON_VALUE返回将 SQL/JSON path_expression 应用于 context_item 的结果。
JSON_VALUE ( context_item, path_expression [PASSING { value AS varname } [, ...]] [RETURNING data_type] [ { ERROR | NULL | DEFAULT expressi…函数 · JSON 函数和操作符
jsonb_agg将所有输入值(包括空值)收集到一个JSON数组中。
Collects all the input values, including nulls, into a JSON array.
jsonb_agg ( anyelement ORDER BY input_sort_columns ) → jsonb
聚合函数函数 · 聚合函数
jsonb_agg_strict将所有非空输入值收集到一个JSON数组中,跳过空值。
Collects all the input values, skipping nulls, into a JSON array.
jsonb_agg_strict ( anyelement ) → jsonb
聚合函数函数 · 聚合函数
jsonb_array_elements将顶级JSON数组展开为一组JSON值。
Expands the top-level JSON array into a set of JSON values.
jsonb_array_elements ( jsonb ) → setof jsonb
JSON 函数和操作符函数 · JSON 函数和操作符
jsonb_array_elements_text将顶级 JSON 数组展开为一组text值。
Expands the top-level JSON array into a set of text values.
jsonb_array_elements_text ( jsonb ) → setof text
JSON 函数和操作符函数 · JSON 函数和操作符
jsonb_array_length返回顶级JSON数组中的元素数量。
Returns the number of elements in the top-level JSON array.
jsonb_array_length ( jsonb ) → integer
JSON 函数和操作符函数 · JSON 函数和操作符
jsonb_build_array根据可变参数列表构建可能异构类型的JSON数组。
Builds a possibly-heterogeneously-typed JSON array out of a variadic argument list.
jsonb_build_array ( VARIADIC "any" ) → jsonb
JSON 函数和操作符函数 · JSON 函数和操作符
jsonb_build_object根据可变参数列表构建一个JSON对象。
Builds a JSON object out of a variadic argument list.
jsonb_build_object ( VARIADIC "any" ) → jsonb
JSON 函数和操作符函数 · JSON 函数和操作符
jsonb_each将顶级JSON对象展开为一组键/值对。
Expands the top-level JSON object into a set of key/value pairs.
jsonb_each ( jsonb ) → setof record ( key text, value jsonb )
JSON 函数和操作符函数 · JSON 函数和操作符
jsonb_each_text将顶级 JSON 对象展开为一组键/值对。
Expands the top-level JSON object into a set of key/value pairs.
jsonb_each_text ( jsonb ) → setof record ( key text, value text )
JSON 函数和操作符函数 · JSON 函数和操作符
jsonb_extract_path在指定路径下提取JSON子对象。
Extracts JSON sub-object at the specified path.
jsonb_extract_path ( from_json jsonb, VARIADIC path_elems text[] ) → jsonb
JSON 函数和操作符函数 · JSON 函数和操作符
jsonb_extract_path_text将指定路径上的 JSON 子对象提取为text。
Extracts JSON sub-object at the specified path as text.
jsonb_extract_path_text ( from_json jsonb, VARIADIC path_elems text[] ) → text
JSON 函数和操作符函数 · JSON 函数和操作符
jsonb_insert返回插入new_value的target。
Returns target with new_value inserted.
jsonb_insert ( target jsonb, path text[], new_value jsonb [, insert_after boolean] ) → jsonb
JSON 函数和操作符函数 · JSON 函数和操作符
jsonb_object从 text 数组构造 JSON 对象。
Builds a JSON object out of a text array.
jsonb_object ( text[] ) → jsonb
jsonb_object ( keys text[], values text[] ) → jsonb
JSON 函数和操作符函数 · JSON 函数和操作符
jsonb_object_agg将所有键/值对收集到一个JSON对象中。
Collects all the key/value pairs into a JSON object.
jsonb_object_agg ( key "any", value "any" ORDER BY input_sort_columns ) → jsonb
聚合函数函数 · 聚合函数
jsonb_object_agg_strict将所有键/值对收集到一个JSON对象中。
Collects all the key/value pairs into a JSON object.
jsonb_object_agg_strict ( key "any", value "any" ) → jsonb
聚合函数函数 · 聚合函数
jsonb_object_agg_unique将所有键/值对收集到一个JSON对象中。
Collects all the key/value pairs into a JSON object.
jsonb_object_agg_unique ( key "any", value "any" ) → jsonb
聚合函数函数 · 聚合函数
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开