How to add autoincrement pk to table in pgAdmin?

To add autoincrement value to table you can use this:

ALTER TABLE public.”Uzytkownicy” ADD COLUMN id BIGSERIAL PRIMARY KEY;

If you have values that are on the table, the unique value of ID will be added automatically.

About the author

Szymon Wójtowicz

View all posts

Dodaj komentarz

Twój adres e-mail nie zostanie opublikowany. Wymagane pola są oznaczone *

This site uses Akismet to reduce spam. Learn how your comment data is processed.