

 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/)。

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

# 資料庫\_COLLATION
<a name="r_DB_COLLATION"></a>

傳回目前資料庫的定序設定。

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

```
db_collation()
```

## 傳回類型
<a name="r_DB_COLLATION-return-type"></a>

傳回代表目前資料庫定序的 VARCHAR 字串。可能的值為 `case_sensitive` 或 `case_insensitive`。

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

下列範例會傳回目前資料庫的定序。

```
select db_collation();

db_collation
----------------
case_sensitive
(1 row)
```