且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何通过SQL选择唯一记录

更新时间:2023-02-05 17:18:31

使用具有单个和多个列名称的 distinct 关键字,您可以得到与众不同的记录:

With the distinct keyword with single and multiple column names, you get distinct records:

SELECT DISTINCT column 1, column 2, ...
FROM table_name;