select
sum(casewhena1=1then1else0end)asa1count,
sum(casewhena2=1then1else0end)asa2count,
sum(casewhena3=1then1else0end)asa3count,
sum(casewhena4=1then1else0end)asa4count
from表
时间:2023-07-04 10:02:17
select
sum(casewhena1=1then1else0end)asa1count,
sum(casewhena2=1then1else0end)asa2count,
sum(casewhena3=1then1else0end)asa3count,
sum(casewhena4=1then1else0end)asa4count
from表