企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
# **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; ---