View a markdown version of this page

CURRENT_AWS_ACCOUNT - Amazon Redshift

Amazon Redshift 將不再支援在 2026 年 6 月 30 日之後使用 Python UDFs。我們將開始分階段強制執行。如需 Python 生命週期結束和遷移選項的詳細資訊,請參閱 2025 年 6 月 30 日發佈的部落格文章

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

CURRENT_AWS_ACCOUNT

傳回與提交查詢之 Amazon Redshift 叢集相關聯的 AWS 帳戶。

語法

current_aws_account

傳回類型

傳回整數。

範例

下列查詢傳回目前資料庫的名稱。

select user, current_aws_account; current_user | current_account -------------+--------------- dwuser | 987654321 (1 row)