Today we are going to learn How to define primary key in PostgreSQL PGAdmin III. Most of time it is little confusing and different to set the primary key for the beginner programmer, as it is in MYSQL.
Here we have shared short and simple code for How to define primary key in PostgreSQL PGAdmin III :
- Right click on Tables field than click New Table.
- After that filling all the fields Properties (name) and Columns (add) tabs.
- On Constraints tab we can set the any column as a Primary key.
For more clear clarification please go through the snapshot below :