select 姓名,
apple=sum(case when 水果='apple' then 吃否 end),
banana=sum(case when 水果='banana' then 吃否 end),
orange=sum(case when 水果='orange' then 吃否 end)
from fruit group by 姓名
apple=sum(case when 水果='apple' then 吃否 end),
banana=sum(case when 水果='banana' then 吃否 end),
orange=sum(case when 水果='orange' then 吃否 end)
from fruit group by 姓名
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货