> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# strright

> Returns a specified number of characters from the right of a string; alias of right.

This function extracts a number of characters from a string with specified length (starting from right). The unit for length: utf-8 character.
Note: This function is also named as [right](/documents/4.2/sql-reference/sql-functions/string-functions/right.md).

## Syntax

```SQL theme={null}
VARCHAR strright(VARCHAR str,INT len)
```

## Examples

```SQL theme={null}
MySQL > select strright("Hello starrocks",9);
+--------------------------------+
| strright('Hello starrocks', 9) |
+--------------------------------+
| starrocks                      |
+--------------------------------+
```

## keyword

STRRIGHT


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.