PostgreSQL – ANY Operator
PostgreSQL has an ANY operator that is used to compare a scalar value with a set of values returned by a subquery....
read more
Install PostgreSQL on Linux
This is a step-by-step guide to install PostgreSQL on a Linux machine. By default, PostgreSQL is available in all Ubuntu versions as PostgreSql “Snapshot”. However other versions of the same can be downloaded through the PostgreSQL apt repository....
read more
PostgreSQL – WHERE clause
The PostgreSQL WHERE clause is used to filter results returned by the SELECT statement....
read more
PostgreSQL – DROP VIEWS Statement
A view can be seen as a virtual table that can contain all rows of a table or selected rows from one or more tables. These allow us to see limited data only instead of complete information stored in a table. A view can be created from one or many Base Tables (the table from which view is created). We can perform various operations on views such as creating, updating and deleting views. Here, we’ll be focusing primarily on dropping or deleting views. Let us try to understand it with the help of an example as shown below :...
read more
When to Use “ON UPDATE CASCADE” in PostgreSQL?
In PostgreSQL, the ON UPDATE CASCADE clause in a foreign key constraint allows for a cascading update behavior between linked tables. This feature automatically updates all matching values in the referencing columns of child tables when a value is changed in the referenced column of the parent table....
read more
Python Psycopg – Cursor class
The cursor class Enables Python scripts to use a database session to run PostgreSQL commands. The connection class is what creates cursors....
read more
Python – Import CSV into PostgreSQL
In this article, we will see how to import CSV files into PostgreSQL using the Python package psycopg2....
read more
PostgreSQL – NOT BETWEEN operator
PostgreSQL NOT BETWEEN operator is used to match all values against a range of values excluding the values in the mentioned range itself....
read more
PostgreSQL – Transactions
The Transaction is not a new word we are hearing. We heard that word many times like “Cash Transaction”. Banks usually deal with cash i.e sending or receiving cash, hence we coin the term as a cash transaction. So simply transaction is a unit of work. In this article, we are going to learn about transactions in the PostgreSQL database language....
read more
How to Insert a Value that Contains an Apostrophe in PostgreSQL?
When working with databases, it’s common to encounter situations where values contain special characters like apostrophes. PostgreSQL, a powerful open-source database system, provides several ways to insert values that contain apostrophes safely. In this article, we’ll explore different approaches to handle this scenario and ensure data integrity....
read more
CHARACTER VARYING vs VARCHAR in PostgreSQL
In PostgreSQL, the terms CHARACTER VARYING and VARCHAR are often used interchangeably, but are they truly the same? In this article, We will understand these data types to clarify their similarities and differences. We’ll explore how they work, their syntax, and examples of their usage in PostgreSQL....
read more
Insert Python list into PostgreSQL database
In this article, we will discuss how to Insert a Python list into PostgreSQL database using pyscopg2 module....
read more