finding multi column duplicates mysql -


How can I get a duplicate record for multi-column? Primary key in the table (auto increment)

Easy

  id a_id b_id ---- ---- ------ 1 34 23 2 34 23 3 35 25   

For example, I have the same a_id and b_id ...

thanks

  t.id, t.a_id, t.b_id (a_id, b_id a_id by bbl, b_id count (*)> 1) x, TBT T, where x.a_id = t.a_id and x.b_id = t.b_id order t.a_id, t.b_id   

This query will show you all duplicates Tuplicate (a_id, b_id) On

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -