RPAD(str,len,padstr): Right pad str with the string padstr to a length of len characters : RPAD « String Functions « MySQL Tutorial






If str is longer than len, the return value is shortened to len characters.

mysql> SELECT RPAD('A',1,'?');
+-----------------+
| RPAD('A',1,'?') |
+-----------------+
| A               |
+-----------------+
1 row in set (0.00 sec)

mysql>








23.36.RPAD
23.36.1.RPAD(str,len,padstr): Right pad str with the string padstr to a length of len characters
23.36.2.Padding the * to the right of the first name