Mysql select distinct

前端 未结 5 1887
孤街浪徒
孤街浪徒 2020-12-01 06:25

I am trying to select of the duplicate rows in mysql table it\'s working fine for me but the problem is that it is not letting me select all the fields in that query , just

5条回答
  •  独厮守ぢ
    2020-12-01 06:46

    You can use group by instead of distinct. Because when you use distinct, you'll get struggle to select all values from table. Unlike when you use group by, you can get distinct values and also all fields in table.

提交回复
热议问题