Javatpoint Logo
Javatpoint Logo

MySQL RPAD() Function

The RPAD() is a String function of MySQL. This method returns the given string which is right-padded with the string padstr to the given length (len).

Syntax

Parameters

str: string to be right padded

rpad: length of the padding

padstr: string to be padded

Returns

This function returns a string that is right-padded with a specified string to a certain length.

Example 1

Output:


MySQL String RPAD() Function

Example 2

Output:


MySQL String RPAD() Function
Next TopicMySQL String





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA