---
title: "sql删除重复数据"
author: "lin358"
date: "2017-01-09T10:49:41Z"
tags: []
categories: ["数据库"]
slug: "sql"
draft: false
lastmod: "2017-01-09T10:49:41Z"
id: 2351405
url: "https://lin358.iteye.com/blog/2351405"
---

delete from  where id not in     
  
(select min(id) from  group by 重复字段1,重复字段2..... )