PLS-00310

Error: PLS-00310: with \%ROWTYPE attribute, 'string' must name a table, cursor or cursor-variable

Causa: The \%ROWTYPE attribute must be applied to an identifier declared as a cursor, cursor variable, or database table. This error occurs when \%ROWTYPE follows some identifier that has not been so declared.

Acción: Change the declaration or do not apply the \%ROWTYPE attribute to the identifier.

COMENTARIOS:

por BbOx | 06/11/2008 01:38:30

RE: PLS-00310

Buenas, tengo un problemas con una funcion que contiene un cursor creado dinamicamente. A la funcion le paso por parametro el nombre de una tabla y al crear la tabla utilizo una variable del tipo de la tabla. el problema es que me da este error al declarar la variable:
vRec p_tabla\%ROWTYPE;
donde p_tabla es el nombre de la tabla que le paso por parametro de la siguiente manera:
FUNCTION lov(p_tabla IN VARCHAR2, p_params IN VARCHAR2) RETURN VARCHAR2
alguien se le ocurre como poder resolverlo? gracias!