PLS-00488: invalid variable declaration: object ‘string’ must be a type or subtype

oracle

PLS-00488: invalid variable declaration: object 'string' must be a type or subtype
Cause: The datatype specifier in a variable declaration does not designate a legal type. For example, the %TYPE attribute might not have been added to a declaration, as in: 

DECLARE 

my_sal emp.sal%TYPE; 

my_ename emp.ename; -- missing %TYPE ... 

When declaring a constant or variable, to provide the datatype of a column automatically, use the %TYPE attribute. Likewise, when declaring a record, to provide the datatypes of a row automatically, use the %ROWTYPE attribute.
Action: Make sure the datatype specifier designates a legal type. Remember to use the %TYPE and %ROWTYPE attributes when necessary.

Back to previous menu

https://support.oracle.com/

http://www.oracle.com/