---
title: "查某张表中某字段重复记录大于1的语句"
author: "summerlin"
date: "2015-10-08T14:58:43Z"
tags: []
categories: ["数据库"]
slug: "1"
draft: false
lastmod: "2015-10-08T14:58:43Z"
id: 2247577
url: "https://summerlin.iteye.com/blog/2247577"
---

select * from tab1 where xh in (select xh from tab1 group by xh having count(\*)&gt;1 )