

# AWS CLI を使用して、プリペアドステートメントを一覧表示する
<a name="querying-with-prepared-statements-listing"></a>

特定のワークグループの準備済みステートメントをリスト表示するには、Athena の AWS CLI コマンド [list-prepared-statements](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/athena/list-prepared-statements.html) または Athena API のアクション [ListPreparedStatements](https://docs.aws.amazon.com/athena/latest/APIReference/API_ListPreparedStatements.html) を使用できます。`--work-group` パラメータは必須です。

```
aws athena list-prepared-statements --work-group primary
```