The REPEAT() function repeats a string as many times as specified.
REPEAT(
string,
number)
Parameter | Description |
---|---|
string | Required. The string to repeat |
number | Required. The number of times to repeat the string |
Works in: | From MySQL 4.0 |
---|
Repeat the text in CustomerName 2 times:
SELECT REPEAT(CustomerName, 2)
FROM Customers;
Try it Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!