Amazon Redshift 將不再支援從修補程式 198 開始建立新的 Python UDFs。現有 Python UDF 將繼續正常運作至 2026 年 6 月 30 日。如需詳細資訊,請參閱部落格文章
本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
列出資料庫中的資料表
若要列出資料庫中的資料表,請使用 aws redshift-data list-tablesAWS CLI命令。
下列AWS CLI命令會對叢集執行 SQL 陳述式,以列出資料庫中的資料表。此範例使用 AWS Secrets Manager身分驗證方法。
aws redshift-data list-tables --secret-arn arn:aws:secretsmanager:us-west-2:123456789012:secret:myuser-secret-hKgPWn --cluster-identifier mycluster-test --database dev --schema information_schema
以下是回應的範例。
{ "Tables": [ { "name": "sql_features", "schema": "information_schema", "type": "SYSTEM TABLE" }, { "name": "sql_implementation_info", "schema": "information_schema", "type": "SYSTEM TABLE" } }
下列AWS CLI命令會對叢集執行 SQL 陳述式,以列出資料庫中的資料表。此範例使用暫時憑證身分驗證方法。
aws redshift-data list-tables --db-user myuser --cluster-identifier mycluster-test --database dev --schema information_schema
以下是回應的範例。
{ "Tables": [ { "name": "sql_features", "schema": "information_schema", "type": "SYSTEM TABLE" }, { "name": "sql_implementation_info", "schema": "information_schema", "type": "SYSTEM TABLE" } ] }