🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# **sql distinct 语句** --- select distinct 语句被使用返回不同的值 --- ### **select distinct 语句** --- 在一张表中,一列可能包含重复的值,有时你想列出不同的值。 distinct 关键词被使用 返回不同的值 --- >SELECT DISTINCT column_name,column_name FROM table_name; --- ### **select distinct 案例** 下面这条sql 语句从customers 表中筛选出 city列中 不同的值 --- >select distinct city from customers; ---