# PostgreSQL Primary Key: CREATE and ALTER TABLE Statements

In this article, we will look at ways to use PostgreSQL Primary Keys when creating a new table or editing an existing one. We will also study instructions with code examples and screenshots based on dbForge Studio for PostgreSQL - https://blog.devart.com/postgresql-primary-key.html

![1200x630_Primary Key-1.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1664354385929/qyl1DfDKx.png align="left")

