REPEAT Function
Syntax
REPEAT(str,count)Description
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.
Examples
SELECT QUOTE(REPEAT('MariaDB ',4));
+------------------------------------+
| QUOTE(REPEAT('MariaDB ',4)) |
+------------------------------------+
| 'MariaDB MariaDB MariaDB MariaDB ' |
+------------------------------------+This page is licensed: GPLv2, originally from fill_help_tables.sql
Last updated
Was this helpful?

