REPEAT(str,count) : REPEAT : String Functions MySQL TUTORIALS


MySQL TUTORIALS » String Functions » REPEAT »

 

REPEAT(str,count)


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)          |
+-----------------------------------+
| navioo.com navioo.com navioo.com  |
+-----------------------------------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo String Functions
» REPEAT