Data Integration-Free and PayGo
- Data Integration-Free and PayGo
- All Products
sff:lpad(first_string,length,second_string)
Argument
| Required/
Optional
| Description
|
---|---|---|
first_string
| Required
| Can be a character string. Passes the string that you want to change. You can enter any valid transformation expression.
To pass a NULL value, you must specify an empty sequence in the following format:
()
|
length
| Required
| Must be a positive integer literal. This argument specifies the length that you want for each string. When
length is a negative number, lpad returns NULL.
|
second_string
| Optional
| Can be any string value. The characters that you want to append to the left-side of the
first_string values. You can enter any valid transformation expression. You can enter a specific string literal. However, enclose the characters you want to add to the beginning of the string within single quotation marks, as in 'abc'. This argument is case sensitive. If you omit the
second_string , the function pads the beginning of the first string with blank characters.
To pass a NULL value, you must specify an empty sequence in the following format:
()
|
sff:lpad(PART_NUM, 6, '0')
|
|
---|---|
|
|
|
|
|
|
|
|
sff:lpad(ITEM_NAME, 16, '*..*')
|
|
---|---|
|
|
|
|
|
|
|
|
sff:lpad(ITEM_NAME, -5, '.')
|
|
---|---|
|
|
|
|
|
|