例如:要在以下的表格, Store_Information ,找出所有不同的店名时,
SELECT DISTINCT Store_Name FROM Store_Information;
结果:
Store_Name Los Angeles San Diego Boston
sql-distinct
标签:
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did119105
例如:要在以下的表格, Store_Information ,找出所有不同的店名时,
SELECT DISTINCT Store_Name FROM Store_Information;
结果:
Store_Name Los Angeles San Diego Boston
sql-distinct
标签:
上一篇: sql-group by
下一篇:sql-where