数据库sql判断语句(case,IF)

"select b.cat_id,(case when a.cat_id<>'null' then count(*) else '0'  end)as goods_num from ".$GLOBALS['ecs']->table('goods'). " as a right join ".$GLOBALS['ecs']->table('category'). " as b on a.cat_id
相关文章
相关标签/搜索