---
title: "把A字段有两条以上的相同记录选出来"
author: "cs_man"
date: "2011-05-14T00:47:36Z"
tags: []
categories: ["数据库"]
slug: "a"
draft: false
lastmod: "2011-05-19T13:17:55Z"
id: 1043941
url: "https://cs-man.iteye.com/blog/1043941"
---

select   *   from   tablename   where   a   in   (select   uid   from   user group   by   uid   having   count(uid)> 1   )