Experts in Postgres and Open Source Infrastructure

24x7, 365 Enterprise services since 1997


This is the Education section of the Command Prompt Website. Here you will find blogs specifically about how to use Postgres and related technologies.

Contact us today for all your Postgres and Open Source consulting and support needs.

ARRAY_TO_STRING() Function in PostgreSQL

PostgreSQL offers an ARRAY_TO_STRING() function that accepts three arguments: an array, a delimiter, and a text to replace the null values.

PostgreSQL Pattern Matching: LIKE VS Not LIKE VS ILIKE

The LIKE operator matches the search expression with the specified pattern and retrieves true if the match is found. The NOT LIKE operator negates the results of the LIKE operator,.

PostgreSQL TRUNC() VS ROUND() Function

The TRUNC() function trims the whole fractional part or up to specified precision, while the ROUND() function rounds the input number to the nearest integer/specified fractional places.

String Arrays in PostgreSQL

PostgreSQL allows us to create a string array using one of three data types: CHAR, VARCHAR, and TEXT. Once an array is created, various operations can be performed on that array.

ARRAY_REMOVE() Function in PostgreSQL

ARRAY_REMOVE() function accepts an array and a specific number as arguments and deletes all the occurrences of that particular number from the input array.

How to Update Multiple Rows in PostgreSQL

In PostgreSQL, the UPDATE statement must be executed with the semi-colon-separated syntax to modify multiple rows with different values.

ARRAY_REPLACE() Function in PostgreSQL

The ARRAY_REPLACE() is an inbuilt array function in Postgres that allows us to replace all the occurrences of an array element with a new element.

Wildcards in PostgreSQL With Practical Examples

Pattern matching in PostgreSQL is performed using wildcards. PostgreSQL offers two wildcards represented with a percentage sign “%” and an underscore sign “_”.

STRING_TO_ARRAY() Function in PostgreSQL

The STRING_TO_ARRAY() function accepts a string as the first argument, splits it into array elements, and concatenates the array elements using a delimiter/separator.

ARRAY_CAT() Function in PostgreSQL

ARRAY_CAT() is another very convenient function in Postgres that is used to concatenate two arrays. It accepts two arrays as arguments and retrieves a concatenated array.