This is a read-only copy of the MariaDB Knowledgebase generated on 2024-12-22. For the latest, interactive version please visit https://mariadb.com/kb/.

La funzione REPEAT

Sintassi

REPEAT(str, count)

Spiegazione

Restituisce una stringa che consiste nella stringa str ripetuta count volte. Se count è minore di 1, restituisce una stringa vuota. Restituisce NULL se str o count sono NULL.

Esempi

MariaDB [(none)]> SELECT QUOTE(REPEAT('MariaDB ',4));
+------------------------------------+
| QUOTE(REPEAT('MariaDB ',4))        |
+------------------------------------+
| 'MariaDB MariaDB MariaDB MariaDB ' |
+------------------------------------+
1 row in set (0.00 sec)
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.