mysql中的 isnull(exper)、ifnull(exper1,exper2)、nullif(exper1,exper2)函數

1.isnull(exper) 判斷exper是否爲空,是則返回1,否則返回0 如expr 爲null,那麼isnull() 的返回值爲 1,否則返回值爲 0 tb_student_record表 - -> SELECT org_id,ISNULL(org_id) FROM tb_student_record 爲 null 的返回值爲1,否則返回值爲0 2.ifnull(exper1,exper2
相關文章
相關標籤/搜索