In PostgreSQL, the jsonb_build_array() function takes the list of heterogeneous parameters and builds the JSONB array from them.
Education
Professional Postgres and Open Source support
Command Prompt, Inc., is the oldest Postgres Company in North America and one of the oldest Open Source firms still operating today. We serve our clients with best in class expertise and professionalism. You can read more about support and services here:
- Postgres Support
- PgLTS: Extended Support for EOL Postgres
- Open Source Full Stack Support
- Try the latest PgManage (Open Source) and get rid of PgAdmin!
You have landed at the largest single source of Postgres education blogs in the world. At Command Prompt, we believe deeply that the education of the community is critical to the continued success of Postgres and related technologies. We hope you find content you are looking for and don't hesitate to Contact us today for all your Postgres and Open Source consulting and support needs.
PostgreSQL quote_ident() Function
While writing the PostgreSQL queries, we sometimes need to use the string as identifiers. For this purpose, the string needs to be converted into the quantified identifier or properly quoted in the double quotation mark. In PostgreSQL, the quote_ident() function performs this task. The quote_ident() function gets a string as an argument and returns the same string properly double-quoted that can be used as a qualified identifier.
Let’s learn more …
PostgreSQL min_scale() Function
The min_scale() function in Postgres returns the minimum precision or minimum number of decimal places that are necessary to accurately/completely express the number.
PostgreSQL parse_ident() Function
parse_ident() function splits the qualified identifier/argument into an array. It gets two parameters; the 1st is the argument that is to be split, and the 2nd is the strict mode
PostgreSQL json_each() Function
The json_each() function converts the top-level JSON object into the expanded key-value pairs. It accepts a JSON object as an input and converts and returns the expanded key-value pairs.
PostgreSQL json_object_keys() Function
The JSON object is provided to the json_object_keys() function as an argument and it returns a column containing all the keys present in that particular JSON object.
PostgreSQL quote_literal() Function
The PostgreSQL quote_literal() function takes in a string and returns the same string enclosed with the single quotations.
PostgreSQL json_strip_nulls() Function
In PostgreSQL, the json_strip_nulls() function removes/eliminates the fields in the JSON object that have NULL values.
How to Use jsonb_build_object() Function in PostgreSQL
In PostgreSQL, the jsonb_build_object() function takes a heterogeneous list of parameters and converts them into JSON objects.
PostgreSQL quote_nullable() Function
The quote_nullable() function in PostgreSQL is used to enclose the string within single quotations. The string is provided to the function as an argument and it returns the single quote enclosed string.