CodePudding user response:
Row_number () over (partition by number order by desc) rnQuery using an rn=1, problem solved,
CodePudding user response:
The delete from the table where the rowid not in (select Max (rowid) from table group by mobile phone)CodePudding user response:
select *
The from tab_phone_test t
Where t.p hone_time in (select Max (t1) phone_time)
The from tab_phone_test t1
Group by t1. Phone_num)