blob: c7fa61f7d809e149f693f36b2c5a10d01f09ac5c [file] [log] [blame] [view]
---
{
"title": "RIGHT",
"language": "en"
}
---
## right
### Description
#### Syntax
`VARCHAR RIGHT (VARCHAR str, INT len)`
It returns the right part of a string of specified length, length is char length not the byte size. Another alias for this function is [strright](./strright.md).
### example
```
mysql> select right("Hello doris",5);
+-------------------------+
| right('Hello doris', 5) |
+-------------------------+
| doris |
+-------------------------+
```
### keywords
RIGHT