PostgreSQL Tutorial
Welcome to PostgreSQL Tutorials by TutorialKart!
Get Started
Begin your journey with PostgreSQL through these beginner-friendly tutorials. Learn how to install PostgreSQL, use the GUI application pgAdmin, and work with the PostgreSQL Shell (psql).
Database
PostgreSQL databases are collections of schemas, tables, procedures, functions, sequences, and more. Explore the following tutorials to learn how to create, manage, and delete databases effectively.
- PostgreSQL – Create Database
- PostgreSQL – Select Database
- PostgreSQL – List Databases
- PostgreSQL – Delete or Drop Database
- PostgreSQL – Backup and Restore Databases
Table
Learn how to manage tables in PostgreSQL. A table stores data in rows and columns. These tutorials guide you on creating tables, altering their properties, and performing operations like inserting, updating, selecting, and deleting rows.
- PostgreSQL – CREATE TABLE
- PostgreSQL – INSERT INTO Table
- PostgreSQL – Insert Multiple Rows into Table
- PostgreSQL – Insert Row if Not Exists in Table
- PostgreSQL – Insert JSON into Table
- PostgreSQL – Insert into Select from Another Table
- PostgreSQL – SELECT FROM Table
- PostgreSQL – Select Top 10 Rows from Table
- PostgreSQL – Select Query with Where Clause
- PostgreSQL – Select Distinct on One Column
- PostgreSQL – Select Distinct on Multiple Column
- PostgreSQL – Select Count
- PostgreSQL – UPDATE Table
- PostgreSQL – DELETE Rows from Table
- PostgreSQL – Add a Column to Table
- PostgreSQL – Delete a Column from Table
- PostgreSQL – Make a Column PRIMARY KEY
- PostgreSQL – Foreign Key Constraints
Clauses
- PostgreSQL – WHERE Clause
- PostgreSQL – LIMIT Clause
- PostgreSQL – ORDER BY Clause
- PostgreSQL – GROUP BY Clause
- PostgreSQL – HAVING Clause
More Tutorials on Creating Tables
- PostgreSQL – Create Table if Not Exists
- PostgreSQL – Create Table with Autoincrement id
- PostgreSQL – Create Table with Primary Key
- PostgreSQL – Create Table with Primary Key Autoincrement
- PostgreSQL – Create Table with Foreign Key
- PostgreSQL – Create Table with Multiple Foreign Key
- PostgreSQL – Create Table with Date Column
- PostgreSQL – Create Table with Default Timestamp
- PostgreSQL – Create Table with Index
- PostgreSQL – Create Table from Another Table
PostgreSQL – Working with JSON
- PostgreSQL – JSON Datatype
- PostgreSQL – JSONB Datatype
- PostgreSQL – JSON vs JSONB
- PostgreSQL – Select JSON column as Text
- PostgreSQL – JSON Functions
- PostgreSQL – JSON Array to Rows
Advanced Topics
- PostgreSQL – Views
- PostgreSQL – Triggers
- PostgreSQL – Stored Procedures
- PostgreSQL – Partitioning Tables
- PostgreSQL – JSON and JSONB Data Types
- PostgreSQL – Working with Arrays
- PostgreSQL – Full-Text Search