REPLICATE function

REPLICATE is a string manipulation function that manipulates all data types (BIT, BLOB, and CHARACTER) and returns a string made up of multiple copies of a supplied string.

Syntax

Read syntax diagramSkip visual syntax diagramREPLICATE(PatternStringExpression ,CountNumericExpression)

REPLICATE returns a string consisting of the pattern string given by PatternStringExpression repeated the number of times given by CountNumericExpression.

The pattern string can be of the CHARACTER, BLOB, or BIT datatype and the count must be of type INTEGER. The result is of the same data type as the pattern string.

If the count is negative or zero, a zero length string is returned. If either parameter is NULL, the result is NULL.

The count is limited to 32*1024*1024 to protect the integration node from erroneous programs. If this limit is exceeded, an exception condition is issued.