!--a11y-->

LFILL(x,a,n) is a string function that inserts the character string a at the start of the character string x as often as required until the character string has reached the length n. If the character string a cannot be completely inserted without exceeding the specified total length, only the part that is needed to reach the total length is inserted.
|
|
Result of the LFILL(x,a,n) function |
|
LFILL(x,a) |
The column x is filled with the characters of a until its maximum length is reached. |
|
x is NULL value |
|
|
a or n is the NULL value |
Error Message |

Example table: customer
SELECT LFILL (firstname,' ',8) firstname, name, city
FROM customer
WHERE firstname IS NOT NULL AND city = 'Los Angeles'
|
FIRSTNAME |
NAME |
CITY |
|
Martin |
Porter |
Los Angeles |
|
Sally |
Peters |
Los Angeles |
|
Frank |
Randolph |
Los Angeles |
|
Joseph |
Peters |
Los Angeles |
|
Susan |
Brown |
Los Angeles |
|
Anthony |
Jackson |
Los Angeles |
|
Thomas |
Adams |
Los Angeles |
