Function documentationRPAD(x,a,y,n) Locate this document in the navigation structure

 

RPAD(x,a,y,n) is a string function that inserts the character string y (string literal) at the end of the character string x (string specification) as often as specified by the expression a. Only expressions that produce an alphanumeric value are permitted as string specifications. The result of the expression a must be a positive integer.

Leading and subsequent blanks in the character string x are truncated.

The optional parameter n (unsigned integer) defines the maximal total length of the character string created. n must be greater than or equal to the total LENGTH(x)+a*LENGTH(y) .

RPAD(x,a,y,n)

x, a, y, n

Result of the RPAD(x,a,y,n) function

RPAD(x,a,y) x must identify a CHAR or VARCHAR column

The maximum length of the character string is the length of the character string x.

x or a is a NULL value

NULL value

a is a special NULL value

Error Messages

More Information

LPAD(x,a,y,n)