Tabela de alteração do pós -gres Adicionar chave primária
-- To set a column as primary key:
ALTER TABLE distributors ADD PRIMARY KEY (tablename);
The Rambling Lank
-- To set a column as primary key:
ALTER TABLE distributors ADD PRIMARY KEY (tablename);
ALTER TABLE table_name ADD PRIMARY KEY (column_1, column_2);
ALTER TABLE table_name ADD PRIMARY KEY (column_1, column_2);
ALTER TABLE table_name ADD PRIMARY KEY (column_1, column_2);
sdgsdg