lpad
The lpad function pads the string with characters from a specified pattern.
Category
String
Return value
varchar
Returns the modified string. The return type is the same as <input>. Any characters that are not letters are left unchanged.
Where
|
<input> |
The source column that contains the string to pad. |
|
<size> |
An integer value indicating the total number of characters in the returned string. |
|
<pad_string> |
A character or set of characters that the function concatenates to the left of the input string until the input string reaches the set size. |