

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

# 在 Athena 主控台中檢視近期查詢
<a name="queries-viewing-history"></a>

使用 Athena 主控台可查看哪些查詢成功或失敗，並檢視失敗查詢的錯誤詳細資訊。Athena 會將查詢歷史記錄保留 45 天。

**在 Athena 主控台中檢視近期查詢。**

1. 前往 [https://console.aws.amazon.com/athena/](https://console.aws.amazon.com/athena/home) 開啟 Athena 主控台。

1. 選擇 **Recent queries** (近期查詢)。**Recent queries** (近期查詢) 索引標籤顯示每個已執行查詢的相關資訊。

1. 若要在查詢編輯器中開啟查詢陳述式，請選擇查詢的執行 ID。  
![\[選擇查詢的執行 ID 即可在查詢編輯器中看到該查詢內容。\]](http://docs.aws.amazon.com/zh_tw/athena/latest/ug/images/querying-view-query-statement.png)

1. 若要查看失敗查詢的詳細資訊，請選擇查詢的 **Failed** (失敗) 連結。  
![\[選擇查詢的 Failed (失敗) 連結以檢視失敗相關資訊。\]](http://docs.aws.amazon.com/zh_tw/athena/latest/ug/images/querying-view-query-failure-details.png)