I have a sql database named "data" and a table "disk", where there are 5 columns
CREATE TABLE `disk` (
`id` int(11) NOT NULL,
`title` text COLLATE utf8_unicode_ci NOT NULL,
`link` text COLLATE utf8_unicode_ci NOT NULL,
`mag` text COLLATE utf8_unicode_ci NOT NULL,
`size` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
the "mag" column has a some of the duplicates.
and I want to delete the complete row where mag column is same.
note: let's say mag column has 1,2,3,4,4,5.... I want to delete a single 4 from it which is duplicate. means I don't want to completely delete both the 4. one "4" must be kept.
What should the query for it look like?