If a table, data might be duplicated amount rows, and there is not primary key for every row,
can i add an column to be a primary key?
This is possible with ALTER TABLE (Assuming you have a column that you want to use as a PK)
ALTER TABLE table ADD PRIMARY KEY(column)
Alternativly:
ALTER TABLE table ADD your_pk_column INT(11) AUTO_INCREMENT PRIMARY KEY