search

Home  >  Q&A  >  body text

How to find the same data in certain fields

As the title states, I want to query only the duplicate data in a certain field of the database. How to query? Or how to do it with PHP?

As shown below, Zhang**’s name, phone number, province, city, etc. are all listed in the same way. There may be multiple records for Zhang San

微信截图_20200313122226.png

Bob pangBob pang1720 days ago1188

reply all(2)I'll reply

  • life

    life2020-03-25 16:17:38

    select count(id) from table name group by recipient having count(id)>1

    reply
    0
  • 骑着小毛驴逛世界

    骑着小毛驴逛世界2020-03-17 17:12:07

    like query

    reply
    1
  • Cancelreply