REPEAT(str,count)
Returns a string consisting of the string str
repeated count
times. Ifcount
is less than 1, returns an empty string. Returns NULL if str
orcount
are NULL
.
SELECT QUOTE(REPEAT('MariaDB ',4));
+------------------------------------+
| QUOTE(REPEAT('MariaDB ',4)) |
+------------------------------------+
| 'MariaDB MariaDB MariaDB MariaDB ' |
+------------------------------------+
This page is licensed: GPLv2, originally from fill_help_tables.sql