学习笔记
1 count 去掉重复
select count(distinct sal) from table1
2分组函数省略null值
select count(nvl(sal,0)) from table1
3 round
4外链接 + 补充空行
select sal from a(+),b
本文介绍了几种实用的SQL技巧,包括如何使用COUNT DISTINCT去除重复记录、COUNT NVL处理NULL值、ROUND函数进行数值舍入以及利用外连接补充空行等操作。
学习笔记
1 count 去掉重复
select count(distinct sal) from table1
2分组函数省略null值
select count(nvl(sal,0)) from table1
3 round
4外链接 + 补充空行
select sal from a(+),b
3965
3万+
4782

被折叠的 条评论
为什么被折叠?