isnull()

評估其唯一引數,並傳回 bool 值,指出引數是否會評估為 Null 值。

注意

字串值不可為 Null。 使用 isempty 來判斷類型 string 的值是否為空白。

語法

isnull(Expr)

深入瞭解 語法慣例

參數

名稱 類型 必要 Description
value 純量 (scalar) ✔️ 要檢查是否不是 Null 的值。

傳回

true 如果 不是 Null,則 false 為 ,否則為 。

x isnull(x)
"" false
"x" false
parse_json("") true
parse_json("[]") false
parse_json("{}") false

範例

尋找沒有開始位置的 Storm 事件。

StormEvents
| where isnull(BeginLat) and isnull(BeginLon)