1.

What Is The Purpose Of %rowtype Data Type? Explain With Example.

Answer»

It DECLARES a composed variable that is EQUIVALENT to the row of a table. After the variable is created, the FIELDS of the table can be ACCESSED, using the name of this variable.
For example
emptype := emp%rowtype;
name := emptype.empname;

It declares a composed variable that is equivalent to the row of a table. After the variable is created, the fields of the table can be accessed, using the name of this variable.
For example
emptype := emp%rowtype;
name := emptype.empname;



Discussion

No Comment Found