# Distinct On 去除重复数据

> 使用 Distinct On 扩展字句快速找出分组内具有最大最小值的记录。

---

LLMS index: [llms.txt](/llms.txt)

---

[![featured](/img/hero/pg/sql-distinct-on.jpg)](https://vonng.com/pg/sql-distinct-on/)

使用 Distinct On 扩展字句快速找出分组内具有最大最小值的记录。 [**阅读全文**](https://vonng.com/pg/sql-distinct-on/)
