mysql 學習筆記 11過程控制

概述: if舉例: 如果conm等於null,就返回0,否則返回conm 使用if參與運算,這樣就避免了conm爲null時候,無法參與運算的情況 ifnull舉例: select case when expr1 then expr1_res when expr2 then expr2_res else expr3 end;(可以繼續添加when … then…) 類似 if elif elif
相關文章
相關標籤/搜索