SELECT DISTINCT
时间: 2024-02-10 14:59:55 浏览: 49
消除重复行续-SELECT语句查询记录
`SELECT DISTINCT` is a clause used in SQL queries to retrieve only unique values from a table or a result set. It filters out duplicate records and returns only one instance of each unique record. For example, if you have a table of sales data and you want to retrieve a list of distinct product names, you can use `SELECT DISTINCT product_name FROM sales_data`.
阅读全文