收起
select count(字段1)+count(字段2) num from tableName where id=1。如果字段数量有限的话,你把要这10个字段添加进去就行了。count(字段)会自动统计不等于null的列。
报告相同问题?