1.在查詢數據庫的時候,會遇到這種情況,但是,只想拿到不為account_date不為null的數據 這時 用到關鍵字 IS NOT NULL
反之 IS NULL
2. SQLserver ISNULL()函數 isnull(expr1,expr2) expr1和expr2為同一種數據類型 expr1為null 返回expr2 expr1不為null 返回expr1
MYSQL IFNULL()函數 IFNULL(expr1,expr2) expr1不為null 返回expr1 否則返回expr2
ORACLE(DB2) NVL()函數 NVL(expr1,expr2) expr1不為null 返回expr1 否則返回expr2