EDIT
This query is not working, any idea why?
select `key`, distinct `filename`, `url`, `processed`, `timestamp` from snaps;
It says to check syntax near 'distinct
filename``
I have the following table
CREATE TABLE IF NOT EXISTS `snaps` (
`filename` varchar(255) COLLATE utf8_bin NOT NULL,
`url` text COLLATE utf8_bin NOT NULL,
`processed` int(11) NOT NULL,
`timestamp` int(11) NOT NULL,
KEY `key` (`key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
I exported the rows of the table and mistakenly imported it back into the same table. So now I have two rows of everything. filename
is unique.
How can I delete the duplicate records?