## Syntax
```mermaid
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> RPAD[RPAD]:::quoted
RPAD --> End((END))
```
## Purpose
The `RPAD` SQL function pads the right-side of a string with a specific set of characters to the given length. When no set of characters given, it will pad with a whitespace.
Parameters:
- Input: Text to be padded.
- Length: The length to make the input to.
- Pad text [optional]: Text to add to the input if the length is larger then the input.
Returns: the padded text, or null if the string cannot be padded.