今天使用mysql的if()函數,搭配count()函數來計算某個欄位的數量,例如欄位名是reg_date,函數用法是if(reg_date is null, '',count(reg_date)) as ...
確定! 回上一頁