orcale 查詢多個字段 並根據某個字段去重

select * from ( select row_number()over(partition by xx order by id desc) as num,r.* from tableName r ) a where a.num=1it
相關文章
相關標籤/搜索