Synopsis
REPEAT(str
, count
)
Returns a string comprising count
copies of the string str
. If
count
is less than 1, an empty string is
returned. If either parameter is NULL
, then NULL
is returned. This code returns the
strings “Ho Ho Ho” and “Merry Christmas”:
SELECT REPEAT('Ho', 3), 'Merry Christmas';