Dup Goto 📝

Create_Table_01

PT2/db/postgres 05-26 13:46:23
To Pop
15 lines, 52 words, 451 chars Monday 2025-05-26 13:46:23

1

See this stackoverflow

ALTER TABLE table_name 
ADD COLUMN id INTEGER PRIMARY KEY GENERATED ALWAYS AS IDENTITY;

ALTER TABLE table_name 
ADD COLUMN id INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY;

and the generate always as identity it can be done in a create table.

2

See Postgres_Data_Types.