i have a table for friendship
CREATE TABLE IF NOT EXISTS `friendList` (
`id` int(10) NOT NULL,
`id_friend` int(10) NOT NULL,
KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
I have some entries like :
Entry A : 1-2
Entry B : 2-1
Entry C : 1-2
Entry A & B show that the user 1 is friend with user 2. But the entry C is useless, so i need to delete it.
Is there way i can delete all duplicate row or apply specific constraint to avoid that?
Thanks !