The function
RPAD
appends string (third parameter) the specified number of times (second parameter) to the first parameter. In this example each one of the student's last name that is less than 10 characters long, is filled with
-
SELECT 
    RPAD(first_name, 10, '-') AS 'student name'
FROM students
by Valeri Tandilashvili
4 years ago
MySQL
String functions
Full MySQL Course for Beginners
1
Pro tip: use ```triple backticks around text``` to write in code fences