postgresql how to make 2 column primary key code example
Example 1: postgres alter table add primary key
-- To set a column as primary key:
ALTER TABLE distributors ADD PRIMARY KEY (tablename);
Example 2: postgres composite primary key
PRIMARY KEY(pk_1, pk_2, ..., pk_n)