Delete duplicate rows in database table (postgresql).

Posted . Visible to the public.

DELETE FROM in_mam WHERE ctid NOT IN (SELECT MAX(ctid) FROM in_mam GROUP BY video_id, mam_id);

Posted by mgns to FB10 (2012-11-19 13:50)