SQL null關鍵字 陷阱,判斷一個字段是否有值。

先看4個 sql:   判斷 SHCI_DEPT_DRAUGHT_F  是否爲空   & select f.shci_dept_draught_f from SHCONSIGNMENTINFO f where f.SHCI_DEPT_DRAUGHT_F is null  運行結果: 有數據 ,可以查詢SHCI_DEPT_DRAUGHT_F   爲空的 & select f.shci_dept_dr
相關文章
相關標籤/搜索