摘要: 即条件求和,共三种方式 select sum(value = 'aaa') from test; select sum(if(value = 'aaa', 1, 0)) from test; select count(if(value = 'aaa', 1, null)) from test; 注意 阅读全文
posted @ 2022-10-09 16:59 我是橘子 阅读(191) 评论(0) 推荐(0) 编辑