數據庫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
相關文章
相關標籤/搜索