MySQL Forums
Forum List  »  Newbie

Re: Query duplicate rows
Posted by: Peter Brawley
Date: August 21, 2018 02:46PM

select col1, col2, ..., colN, count(*) as N
from tbl
group by col1, col2, ..., colN
having N>1;

Options: ReplyQuote


Subject
Written By
Posted
August 21, 2018 02:27PM
Re: Query duplicate rows
August 21, 2018 02:46PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.