MySQL查詢某個字段不重複的所有記錄

select a.id,a.ip,a.creationTime from myTable a right join ( select max(id) id from myTable group by ip) b on b.id = a.id where a.id is not null 或者 select a.* from myTable a right join ( select max(id)
相關文章
相關標籤/搜索