1. if
select sum(if(a.列1 是否满足条件,返回值1,返回值2)) from 表1 as a;
目前只用到sum()中的if
Powered by: 博客园 Copyright © 2024 周一要吃鸡腿 Powered by .NET 8.0 on Kubernetes