REPETIR

Este procedimiento crea una nueva matriz de valores repetidos.

Uso

El procedimiento almacenado REPETIR tiene la siguiente sintaxis:
REPETIR matrixIn,matrixOut,nrow,ncol )
Parámetros
matrixIn
El nombre de la matriz de entrada.
Tipo NVARCHAR(ANY)
matrixOut
El nombre de la matriz de salida.
Tipo NVARCHAR(ANY)
nRow
El multiplicador de filas.
Tipo: INT4
ncol
El multiplicador de columna.
Tipo: INT4
Devuelve
BOOLEAN TRUE, si tiene éxito.

Detalles

La nueva matriz es de tamaño: nrow*matrixIn.rows x ncol*matrixIn.cols.

Ejemplos

CALL nzm..SHAPE('1,2,3,4,5,0,6,7,8',3,3,'A');
CALL nzm..REPEAT('A','B',2,2);
CALL nzm..PRINT('A');
CALL nzm..PRINT('B');
CALL nzm..DELETE_MATRIX('A');
CALL nzm..DELETE_MATRIX('B');

 SHAPE
-------
 t
(1 row)

 REPEAT
--------
 t
(1 row)

                 PRINT
-----------------------------------------
 -- matrix: A --
 1, 2, 3
 4, 5, 0
 6, 7, 8
(1 row)

                         PRINT
----------------------------------------------------------
 -- matrix: B --
 1, 2, 3, 1, 2, 3
 4, 5, 0, 4, 5, 0
 6, 7, 8, 6, 7, 8
 1, 2, 3, 1, 2, 3
 4, 5, 0, 4, 5, 0
 6, 7, 8, 6, 7, 8
(1 row)

 DELETE_MATRIX
---------------
 t
(1 row)

 DELETE_MATRIX
---------------
 t
(1 row)