---
title: "oracle去除重复数据常用的方法"
author: "mengjichen"
date: "2023-12-07T11:11:26Z"
tags: []
categories: ["数据库"]
slug: "oracle"
draft: false
lastmod: "2023-12-07T11:11:26Z"
id: 2539626
url: "https://mengjichen.iteye.com/blog/2539626"
---

SELECT *  from ecm_query t
 where t.rowid   in  (
select rid
                     from (select t1.rowid rid,
                                  row_number() over(partition by t1.id, t1.name order by 1) rn
                             from ecm_query t1) t1
                    where t1.rn > 1)
                    
select t1.rowid rid, row_number() over(partition by t1.id, t1.name order by 1) rn                                 
from ecm_query t1 WHERE id ='e56d2f1105794294979189f8073d5699'  

https://blog.csdn.net/nayi_224/article/details/82020913