COPY returns a string consisting of y concatenated copies of the string x.
|
x must have a computational type and should have a string type. If not, it is converted to character.
If y is zero, the result is a null string.
Considering the following code:
copy('Walla ',1) /* returns 'Walla ' */
repeat('Walla ',1) /* returns 'Walla Walla ' */
In the preceding example, repeat(x,n) is equivalent to copy(x,n+1).