---
title: "group by"
author: "jiues"
date: "2013-01-18T13:41:39Z"
tags: ["group by"]
categories: ["Web前端"]
slug: "group-by"
draft: false
lastmod: "2013-01-18T13:43:20Z"
id: 1772046
url: "https://jiues.iteye.com/blog/1772046"
---


  group by a字段选择b字段，过滤重复的字段

select  min(a.id) from table a  where a.xxx=?  group by a.b