例子:
SELECT DISTINCT column_name
FROM table_name;
例子:
SELECT column_name
FROM table_name
GROUP BY column_name;
例子:
SELECT column_name
FROM table_name
WHERE column_name IN (SELECT DISTINCT column_name FROM table_name);
例子:
SELECT column_name
FROM (
SELECT column_name, ROW_NUMBER() OVER (PARTITION BY column_name ORDER BY column_name) AS rn
FROM table_name
) AS temp
WHERE rn = 1;