1.

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

Answer»

It assigns a variable the same data TYPE USED by the COLUMN, for which the variable is created. For EXAMPLE,
dcode := DEPT.detpno%type;
The variable dcode is created with the same data type as that of the deptno column of the dept table.

It assigns a variable the same data type used by the column, for which the variable is created. For example,
dcode := dept.detpno%type;
The variable dcode is created with the same data type as that of the deptno column of the dept table.



Discussion

No Comment Found