REPEAT Function
The REPEAT function returns a character string composed of the evaluation of a character
expression repeated a specified number of times.
REPEAT is a Neoview SQL extension.
REPEAT (character-expr, count)
character-expr
specifies the source string from which to return the specified number of repeated strings.
The source string is an SQL character value expression. The operand is the result of evaluating
character-expr. See
count
specifies the number of times the source string character-expr is to be repeated. The
number count must be a value greater than or equal to zero of exact numeric data type and
with a scale of zero.
Example of REPEAT
Return this quote from Act 5, Scene 3, of King Lear:
REPEAT ('Never,', 5)
Never,Never,Never,Never,Never,
"Character Value Expressions" (page
255).
REPEAT Function
447