--1. The Lpad function populates the left string with some specific characters whose syntax is formatted as follows:Lpad (String,n,[pad_string])--string: But the character or argument--N: The length of the character, is the number of strings returned, if this number is shorter than the length of the original string, the Lpad function will intercept the string as a left-to-right n character;--pad_string: is an optional parameter, this string is to be pasted to the left of the string, if this argument is not written, the Lpad function will paste a space on the left side of the string. --For example:Lpad ('Tech',7);--will return ' tech 'Lpad ('Tech',2);--will return ' Te 'Lpad ('Tech',8,'0');--will return ' 0000tech 'Lpad ('Tech on the net', the,'Z');--will return ' tech on the net 'Lpad ('Tech on the net', -,'Z');--will return ' Ztech on the net '--------------------------------------2. The use of the Rpad () function:--The rpad function populates the right string with some specific characters whose syntax is formatted as follows:Rpad (String,n,[pad_string])--string: But the character or argument--N: The length of the character, is the number of strings returned, if this number is shorter than the length of the original string, the Lpad function will intercept the string as a left-to-right n character;--pad_string: is an optional parameter, this string is to be pasted to the right of the string, if this argument is not written, the Lpad function will paste a space on the right side of the string. --For example:Rpad ('Tech',7);--will return ' tech 'Rpad ('Tech',2);--will return ' Te 'Rpad ('Tech',8,'0');--will return ' tech0000 'Rpad ('Tech on the net', the,'Z');--will return ' tech on the net 'Rpad ('Tech on the net', -,'Z');--will return ' tech on the Netz '
Oracle Lpad () function and Rpad () function