select count(1) from test1;--包括空的 8 select count(*) from test1;--包括空的 8 select count(column1) from test1; --非空的统计 6 select count(distinct column1) from test1; --非空,去除重复 3
楼主想表达什么。印象中记得Select count(1) 和Select count(*) 主要是是考虑在数据量较大的时候的效率问题
17,377
社区成员
95,127
社区内容
加载中
试试用AI创作助手写篇文章吧