SQL中if,ifnull,case when

1.if 表達式:IF( expr1 , expr2 , expr3 ) expr1條件,條件爲true,則值是expr2 ,false,值就是expr3 2.case when case 列名 when 條件 then 結果 else 其它結果 end 別名 不要忘記最後的endweb 3.ifnull IFNULL( expr1 , expr2 ) 在 expr1 的值不爲 NULL
相關文章
相關標籤/搜索