SHOW SCALEOUT TABLES
Use SHOW SCALEOUT TABLES to list the scaleout tables of a database cluster group for Aurora.
Description and syntax
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 are how you read them.
SHOW SCALEOUT TABLES;
Parameters and options
None. The statement takes no LIKE, WHERE, or FROM clause; it returns every name in the group, sorted by name.
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 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
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.
For the privilege that the statement needs, see Privileges.
Usage notes
The statement returns names only. Read each definition with SHOW CREATE SCALEOUT TABLE.
Examples
The following example lists the scaleout tables in the group.
SHOW SCALEOUT TABLES;
Errors
The statement can return the following errors. For all errors from the routing layer, see Error codes for database cluster groups for Aurora.
| Aurora MySQL | Meaning |
|---|---|
| 1064 | Syntax error: a form outside the grammar. |
Related statements
For more information, see the following: