07 2023 档案
oracle partition by 查询重复记录中的1条数据(获取表去重后的数据所有字段)
摘要:1,partition by 分组后给分组数据排序 select t.*,row_number() over(partition by t."name",t."rid" order by t."rid") as "sort" from "person" t; 2、获取去重后的记录 select t2 阅读全文
posted @ 2023-07-26 14:32 李白菜 阅读(722) 评论(0) 推荐(0)