---
title: "查出重复的数据.如果相同着自动标序列123"
author: "foolraty"
date: "2010-11-26T17:33:09Z"
tags: []
categories: ["数据库"]
slug: "123"
draft: false
lastmod: "2010-11-26T17:33:09Z"
id: 825721
url: "https://foolraty.iteye.com/blog/825721"
---

select * from (

select a.\*,row\_number() over (partition by guid,item,corp order by item) rn

 from corpitem a

 ) where rn=1