%TYPE
Vs. %RowType
The Advantages are:
- I Need not to know about variable's data type.
- If the database definition of a column in a table changes, the data type of a variable changes accordingly.
%TYPE is used
to declare a field with the same type as that of a specified table's column:
o
/
%ROWTYPE is
used to declare a record with the same types as found in the specified database
table, view or cursor:
o
v_emp.empno := 10;
o
v_emp.ename := 'XXXXXXX';
o
/
great
ReplyDelete