Oracle(二)- count的用法

来源:互联网 发布:docker 端口 映射 编辑:程序博客网 时间:2024/05/21 11:25

test1表的内容如下b

select count(1) from test1;–包括空的 8
select count(*) from test1;–包括空的 8
select count(column1) from test1; –非空的统计 6
select count(distinct column1) from test1; –非空,去除重复 3

原创粉丝点击