

 Amazon Redshift 將不再支援從修補程式 198 開始建立新的 Python UDFs。現有 Python UDF 將繼續正常運作至 2026 年 6 月 30 日。如需詳細資訊，請參閱[部落格文章](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

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

# enable\$1case\$1sensitive\$1super\$1attribute
<a name="r_enable_case_sensitive_super_attribute"></a>

## 值 (粗體為預設值)
<a name="r_enable_case_sensitive_super_attribute-values"></a>

true、**false**

## Description
<a name="r_enable_case_sensitive_super_attribute-description"></a>

組態值，決定瀏覽具有非分隔屬性名稱的 SUPER 資料類型結構是否區分大小寫。當您將 `enable_case_sensitive_super_attribute` 設定為 `true` 時，瀏覽具有非分隔屬性名稱的 SUPER 類型結構會區分大小寫。當您將值設定為 `false` 時，瀏覽具有非分隔屬性名稱的 SUPER 類型結構不會區分大小寫。

無論 `enable_case_sensitive_super_attribute` 組態選項的設定為何，以雙引號括住屬性名稱並將 `enable_case_sensitive_identifier` 設定為 `true` 時，大小寫一律會保留。

`enable_case_sensitive_super_attribute` 僅適用於具有 SUPER 資料類型的資料欄。對於所有其他資料欄，請考慮使用 `enable_case_sensitive_identifier` 代替。

如需瀏覽大寫和混合大小寫 JSON 欄位的詳細資訊，請參閱 [存取具有大寫和混合大小寫欄位名稱或屬性的 JSON 欄位](super-configurations.md#upper-mixed-case)。

## 範例
<a name="w2aac61c51b7"></a>

下列範例說明在 `enable_case_sensitive_super_attribute` 已啟用和已停用的情況下選取 SUPER 值的結果。

```
--Create a table with a SUPER column.
CREATE TABLE tbl (col SUPER);
 
--Insert values.
INSERT INTO tbl VALUES (json_parse('{
 "A": "HELLO", "a": "123"
}'));

SET enable_case_sensitive_super_attribute TO ON;

SELECT col.A FROM tbl;
  a 
----- 
 "HELLO"
(1 row)

SELECT col.a FROM tbl;
  a 
----- 
 "123"
(1 row)

SET enable_case_sensitive_super_attribute TO OFF;

SELECT col.A FROM tbl;
  a 
-----
 "123"
(1 row)

SELECT col.a FROM tbl;
  a  
-----
 "123"
(1 row)
```

## 使用須知
<a name="r_enable_case_sensitive_super_attribute-usage-notes"></a>
+  檢視和具體化視觀表會遵循其建立時的 `enable_case_sensitive_super_attribute` 值。近期繫結檢視、預存程序和使用者定義函數都會遵循查詢時的 `enable_case_sensitive_super_attribute` 值。
+  如果您對具體化視觀表使用自動重新整理，建議您在叢集或工作群組的參數群組中設定 `enable_case_sensitive_identifier value`。這可確保在重新整理具體化視觀表時 `enable_case_sensitive_identifier` 保持不變。如需重新整理具體化視觀表的相關資訊，請參閱 [重新整理具體化視觀表](materialized-view-refresh.md)。如需在參數群組中設定組態值的相關資訊，請參閱《Amazon Redshift 管理指南》**中的 [Amazon Redshift 參數群組](https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html)。
+  無論 `enable_case_sensitive_super_attribute` 的值為何，陳述式結果中的資料欄名稱一律會變更為小寫。若要讓資料欄名稱區分大小寫，請啟用 `enable_case_sensitive_identifier`。
+  我們建議一般使用者查詢具有資料列層級安全政策的資料表時，使用預設的 `enable_case_sensitive_identifier` 設定。如需取得資料列層級安全的相關資訊，請參閱 [資料列層級安全性](t_rls.md)。