

# 指定したデータベース内のテーブルを一覧表示し、名前でテーブルを検索する
<a name="querying-glue-catalog-listing-tables"></a>

テーブルのメタデータを一覧表示するには、テーブルスキーマまたはテーブル名でクエリを実行します。

**Example – テーブルのスキーマ別のリスト化**  
次のクエリは、`rdspostgresql` テーブルスキーマを使用するテーブルを一覧表示します。  

```
SELECT table_schema,
       table_name,
       table_type
FROM   information_schema.tables
WHERE  table_schema = 'rdspostgresql'
```
次の表は、サンプル結果を示しています。  


****  

|  | table\$1schema | table\$1name | table\$1type | 
| --- | --- | --- | --- | 
| 1 | rdspostgresql | rdspostgresqldb1\$1public\$1account | BASE TABLE | 

**Example – 名前によるテーブルの検索**  
次のクエリは、テーブル `athena1` のメタデータ情報を取得します。  

```
SELECT table_schema,
       table_name,
       table_type
FROM   information_schema.tables
WHERE  table_name = 'athena1'
```
次の表は、サンプル結果を示しています。  


****  

|  | table\$1schema | table\$1name | table\$1type | 
| --- | --- | --- | --- | 
| 1 | default | athena1 | BASE TABLE | 