C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL RPAD() FunctionThe 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). Syntaxselect rpad(str, len, padstr) Parametersstr: string to be right padded rpad: length of the padding padstr: string to be padded ReturnsThis function returns a string that is right-padded with a specified string to a certain length. Example 1Select rpad('TheDeveloperBlog', 4, '**'); Output: Example 2Select rpad('mysql', 2, '**'); Output:
Next TopicMySQL String
|