

# SHOW SCALEOUT TABLES

Use `SHOW SCALEOUT TABLES` to list the scaleout tables of a database cluster group for Aurora.

## Description and syntax
<a name="databaseclustergroups-sql-show-scaleout-syntax"></a>

Lists the names of the scaleout tables in the whole group, with no database column. The routing layer has no system table that lists scaleout tables, so on Aurora MySQL this statement and [SHOW CREATE SCALEOUT TABLE](databaseclustergroups-sql-show-create-scaleout-table.md) are how you read them.

```sql
SHOW SCALEOUT TABLES;
```

## Parameters and options
<a name="databaseclustergroups-sql-show-scaleout-parameters"></a>

None. The statement takes no `LIKE`, `WHERE`, or `FROM` clause; it returns every name in the group, sorted by name.

**Note**  
The statement takes no filter clause. A `LIKE` or `WHERE` clause after `SHOW SCALEOUT TABLES` is a syntax error, error 1064. To check one scaleout table, run [SHOW CREATE SCALEOUT TABLE](databaseclustergroups-sql-show-create-scaleout-table.md) with its name.  
`SHOW TABLES` and `SHOW DATABASES` at the routing endpoint don't list scaleout tables. `SHOW TABLES` lists the router table names of the table-level data mappings in the database. Its list includes the member tables of a scaleout table, by their router table names, and the other router tables in that database. The routing layer builds the list from its data mappings, without contacting a member cluster. `SHOW DATABASES` lists the router database names of all data mappings, and `dbclustergroup_sys` and `dbclustergroup_data_movement`. Both statements accept `LIKE` and `WHERE`. To list scaleout tables, use `SHOW SCALEOUT TABLES`.

## Where it runs and required privileges
<a name="databaseclustergroups-sql-show-scaleout-privileges"></a>

Run the statement at the routing endpoint, in a session that isn't pinned. A pinned session passes the statement through to the member cluster unchanged. For the details, see [Where these statements run](databaseclustergroups-sql-reference.md#databaseclustergroups-sql-where-statements-run).

For the privilege that the statement needs, see [Privileges](databaseclustergroups-sql-reference.md#databaseclustergroups-sql-privileges).

## Usage notes
<a name="databaseclustergroups-sql-show-scaleout-usage"></a>

The statement returns names only. Read each definition with [SHOW CREATE SCALEOUT TABLE](databaseclustergroups-sql-show-create-scaleout-table.md).

## Examples
<a name="databaseclustergroups-sql-show-scaleout-examples"></a>

The following example lists the scaleout tables in the group.

```sql
SHOW SCALEOUT TABLES;
```

## Errors
<a name="databaseclustergroups-sql-show-scaleout-errors"></a>

The statement can return the following errors. For all errors from the routing layer, see [Error codes for database cluster groups for Aurora](databaseclustergroups-error-reference.md).


| Aurora MySQL | Meaning | 
| --- | --- | 
| [1064](databaseclustergroups-errors-routing.md#databaseclustergroups-routing-and-statement-errors) | Syntax error: a form outside the grammar. | 

## Related statements
<a name="databaseclustergroups-sql-show-scaleout-related"></a>

For more information, see the following:
+ [SHOW CREATE SCALEOUT TABLE](databaseclustergroups-sql-show-create-scaleout-table.md)
+ [CREATE SCALEOUT TABLE](databaseclustergroups-sql-create-scaleout-table.md)
+ [SHOW SCALEOUT ROUTING FUNCTIONS](databaseclustergroups-sql-show-scaleout-routing-functions.md)