I have a table
(entry_id, user_id, event_id)with entry_id set to auto increment. But i had forgotten to make entry_id as primary key. Now i have about 400 entries with same entry_id. It hasnt incremented. How do i change it so that entry_id is unique without deleting the table?
If i do the following query will i lose anything?
ALTER TABLE your_table
ADD PRIMARY KEY (entry_id);
Note that all my entry_ids have 1 as value.