1、错:group_concat(DISTINCT oad.brand SEPARATOR ",")
对:group_concat(DISTINCT oad.brand SEPARATOR ',')
最后的分割符只能使用单引号
2、错:sum(table.x==0) as s
对:sum(if(table.x==0,1,0)) as s
sum中写条件时,需使用if表达完整,不能简写
1、错:group_concat(DISTINCT oad.brand SEPARATOR ",")
对:group_concat(DISTINCT oad.brand SEPARATOR ',')
最后的分割符只能使用单引号
2、错:sum(table.x==0) as s
对:sum(if(table.x==0,1,0)) as s
sum中写条件时,需使用if表达完整,不能简写