Jump to content

[SOLVED] how do I delete duplicates in two colums?


n8w

Recommended Posts

I thought this would be easy but it doesn't work

I want to delete all records that have the same ids in two colums

 

for example I tried

DELETE FROM mytable WHERE userid=judgeid 

 

So I would like to delete row 2 in the example below

 

row #useridjudgeid

1 1231 2213

2 1122 1122

3 3234 123

4 543 443

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.