@digitalsatori
首先:我确保在同一数据库中进行操作,数据差异对比如下:
在视图中进行group by后跟数据库用count计算出来的对比:
sql:select e_f_cskit,count(e_f_cskit) from product_template group by e_f_cskit ;
[image: 1515140779108-5cd570fa-ba72-45a9-b7ea-add7c7c316f0-%E5%9B%BE%E7%89%87-resized.png]
数据库中sql命令查询为空字符串的数量:
[image: 1515140858612-x27-x27.png]
数据库中sql命令查询为Null的数量:
[image: 1515140866652-null.png]
是我sql错啦,还是什么原因?