Mega Code Archive

 
Categories / MySQL Tutorial / String Functions
 

REPEAT(str,count)

If count is less than 1, returns an empty string. Returns NULL if str or count are NULL. mysql> SELECT REPEAT('rntsoft.com ', 3); +-----------------------------------+ | REPEAT('rntsoft.com ', 3)          | +-----------------------------------+ | rntsoft.com rntsoft.com rntsoft.com  | +-----------------------------------+ 1 row in set (0.00 sec) mysql>