Loading TOC...

MarkLogic Server 11.0 Product Documentation
sql:repeat

sql:repeat(
   $str as item(),
   $n as xs:double
) as xs:string

Summary

Returns a string that concatenates the first argument as many times as specified by the second argument.

Parameters
str The string to duplicate. If the value is not a string, its string value will be used.
n The number of times to repeat the string.

Example

  sql:repeat("ab",2)
  => "abab"

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.