当前位置:网站首页>SQL语言中的distinct说明
SQL语言中的distinct说明
2022-08-09 08:56:00 【l8487】
对整个select 来说的话.前面加一个distinct表示把重复的记录去掉的意思, 找出表中不重复的记录。
id name
1 张三
2 王三
3 李四
4 张三
2 王三
select distinct id,name from t1
id name
1 张三
2 王三
3 李四
4 张三
select distinct name from t1
name
张三
王三
李四
id name
1 张三
2 王三
3 李四
4 张三
2 王三
select distinct id,name from t1
id name
1 张三
2 王三
3 李四
4 张三
select distinct name from t1
name
张三
王三
李四
边栏推荐
猜你喜欢
随机推荐
解决iframe跳转时父页面仍然存在的问题
Module模块化编程的优点有哪些
Getting started with ctfshow-web Part of the file upload part solution
Dark Horse 2022 latest redis course notes and knowledge points (for interview)
DeFi 项目中的治理Token
SAE定时备份博客数据库
政务中心导航定位系统,让高效率办事成为可能
makefile - 学习小结
leetcode 32. 最长有效括号 (困难)
Redis redis 】 【 the expiration of listening
支付宝小程序使用自定义组件(原生)
gin中改进版curd接口例子
【Harmony OS】【ARK UI】公共事件模块
正则之re模块
BUUCTF MISC brush notes (2)
Failed to mount component: template or render function not defined.
支付宝小程序禁止页面弹性下拉或上拉
hdu2191 多重背包(2016xynu暑期集训检测 -----B题)
Programming a washing machine: garbled characters after string output
js实现看板全屏功能