select * from (
select id,name,counts,createDate,row_number() over(partition bynameorderby createDate desc) rn
from testTable
) t where t.rn <=1
转载于:https://blog.51cto.com/mawushou/1345607
select * from (
select id,name,counts,createDate,row_number() over(partition bynameorderby createDate desc) rn
from testTable
) t where t.rn <=1
转载于:https://blog.51cto.com/mawushou/1345607