计数

xiaoxiao2021-02-28  36

相同的效果,1表示第一列。

select count(case when sal>2000 then 1 end) from emp;

select count(*) from emp where sal>2000;
转载请注明原文地址: https://www.6miu.com/read-2621476.html

最新回复(0)