REPEAT(str,count): Repeated str count times : REPEAT « String Functions « MySQL Tutorial






If count is less than 1, returns an empty string.

Returns NULL if str or count are NULL.

mysql> SELECT REPEAT('java2s.com ', 3);
+-----------------------------------+
| REPEAT('java2s.com ', 3)          |
+-----------------------------------+
| java2s.com java2s.com java2s.com  |
+-----------------------------------+
1 row in set (0.00 sec)

mysql>








23.32.REPEAT
23.32.1.REPEAT(str,count): Repeated str count times
23.32.2.Repeat first name for three times