

# 지정된 데이터베이스의 테이블 나열 및 이름별로 테이블 검색
<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 | 기본값 | athena1 | BASE TABLE | 