1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[SQL] How can I delete one of two perfectly identical rows?

Discussão em 'Outras Linguagens' iniciado por Stack, Outubro 4, 2024 às 13:12.

  1. Stack

    Stack Membro Participativo

    I am cleaning out a database table without a primary key (I know, I know, what were they thinking?). I cannot add a primary key, because there is a duplicate in the column that would become the key. The duplicate value comes from one of two rows that are in all respects identical. I can't delete the row via a GUI (in this case MySQL Workbench, but I'm looking for a database agnostic approach) because it refuses to perform tasks on tables without primary keys (or at least a UQ NN column), and I cannot add a primary key, because there is a duplicate in the column that would become the key. The duplicate value comes from one...

    How can I delete one of the twins?

    Continue reading...

Compartilhe esta Página