

# SHOW SCALEOUT ROUTING FUNCTIONS

Use `SHOW SCALEOUT ROUTING FUNCTIONS` to list the routing functions of a database cluster group for Aurora.

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

Lists the names of the routing functions in the group. On Aurora MySQL, the result has the column `Scaleout_routing_functions`. The routing layer has no system table that lists routing functions, so this statement and [SHOW CREATE SCALEOUT ROUTING FUNCTION](databaseclustergroups-sql-show-create-scaleout-routing-function.md) are how you read them.

```sql
SHOW SCALEOUT ROUTING FUNCTIONS;
```

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

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

## Where it runs and required privileges
<a name="databaseclustergroups-sql-show-scaleout-routing-functions-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-routing-functions-usage"></a>

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

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

The following example lists the routing functions in the group.

```sql
SHOW SCALEOUT ROUTING FUNCTIONS;
```

## Errors
<a name="databaseclustergroups-sql-show-scaleout-routing-functions-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-routing-functions-related"></a>

For more information, see the following:
+ [SHOW CREATE SCALEOUT ROUTING FUNCTION](databaseclustergroups-sql-show-create-scaleout-routing-function.md)
+ [CREATE SCALEOUT ROUTING FUNCTION](databaseclustergroups-sql-create-scaleout-routing-function.md)
+ [SHOW SCALEOUT TABLES](databaseclustergroups-sql-show-scaleout.md)