This tutorial explains how to use the MySQL REPEAT function with syntax and examples.
The MySQL REPEAT function repeats a string a specified number of times.
The syntax for the REPEAT function in MySQL is:
The string to repeat.
The number of times to repeat the string.
The REPEAT function can be used in the following versions of MySQL:
Let's look at some MySQL REPEAT function examples and explore how to use the REPEAT function in MySQL.
For example: