PostgreSQL Basics How to Insert How to Update How to Delete How to Trim Strings How to Use substring() How to Use substring() with RegEx to Extract a String How to Replace Substrings How to Modify Arrays How to Compare Arrays How to Concatenate Strings How to Convert the Case of a Stri...
To use the database and table in our database, we need to create it on the database server; after creating it on the PostgreSQL database server, we can use the same in our PostgreSQL application. To use the PostgreSQL database in our application, we need to do the following things on...
PostgreSQL provides a built-in function namedSUBSTRING()that extracts a substring from any specific string. TheSUBSTRING()function accepts three parameters: a string, starting position, and length. The starting position” and “length” parameters are optional that can be skipped depending on ...
PostgreSQL provides a datediff function to users. The datediff means we can return the difference between two dates based on their specified interval. The datediff Function plays an important role in the database management system because datediff functions as a calendar and is very helpful to users...
In this article, we will explain how to install PostgreSQL database system on an Ubuntu 18.04 server and learn some basic ways to use it.
1. How do I extract a specific JSON key from a JSON column? You can use the->or->>operators to extract JSON keys.` `->returns the value as JSON, while->>returns the value as text. 2. Can I query nested JSON structures in PostgreSQL?
PostgreSQL as a Service (PGaaS) is a specific form of Database as a Service (DBaaS) that enables users to easily create, manage, and use Postgres databases in the cloud. Various cloud service providers offer PGaaS options, including AWS with RDS for Postgres, Microsoft's Azure Dat...
With SQL, there are occasions where we might want to use these concepts from set theory, whether it’s to concatenate two data sets or to extract information about two sets’ relationships. For this, PostgreSQL provides syntax for set operations: UNION, INTERSECT, and EXCEPT. In this article...
During the Postgres installation, an operating system user namedpostgreswas created to correspond to thepostgresPostgreSQL administrative user. You need to use this user to perform administrative tasks. You can usesudoand pass in the username with the-iuoption. ...
PostgreSQL regex solution In Postgres regex syntax, parentheses()create a numbered capture group which leads to returning the contained matching results. To get the entire matching data, the regex should have a question mark and a colon (?:) added at the beginning of the regex pattern to creat...