ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的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; ---