

 Amazon Redshift 將不再支援在 2026 年 6 月 30 日之後使用 Python UDFs。我們將開始分階段強制執行。如需 Python 生命週期結束和遷移選項的詳細資訊，請參閱 2025 年 6 月 30 日發佈的[部落格文章](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Null 條件
<a name="r_null_condition"></a>

null 條件會檢定 null (缺少值或是值未知)。

## 語法
<a name="r_null_condition-synopsis"></a>

```
expression IS [ NOT ] NULL
```

## 引數
<a name="r_null_condition-arguments"></a>

 *表達式*   
任何表達式，例如資料欄。

IS NULL   
表達式的值如果是 null 則為 true，表達式的值如果包含值，則為 false。

 IS NOT NULL   
表達式的值如果是 null 則為 false，表達式的值如果包含值，則為 true。

## 範例
<a name="r_null_condition-example"></a>

此範例顯示 SALES 資料表的 QTYSOLD 欄位中有多少次包含 null：

```
select count(*) from sales
where qtysold is null;
count
-------
0
(1 row)
```