what are %TYPE and %ROWTYPE? what is the difference?

Answer Posted / pavan_1981

these two are used with cursors to store the returing
result from the query.
%TYPE:a variable is declared to be of %type when we are
referring to a single specific column.when we declare a
variable to be of %type of a column,the variable datatype
becomes the datatype of that column..here it can only one
datatype that of the column.

%ROWTYPE:same as above but takes a single row at a time and
can accomidate multiple datatypes.it can store whole row at
a time containing different datatypes.

Is This Answer Correct ?    83 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you take the union of two tables in sql?

509


What is basic structure of pl sql?

489


What is the most common sql injection tool?

535


What is graph sql?

518


What is the sql query to display the current date?

540






How do I order by ascending in sql?

527


Can you join views in sql?

528


How do I partition a table in sql?

531


what is view? : Sql dba

551


What is error ora-01000: maximum open cursors exceeded

597


What is offset and limit in sql?

543


what are integrity rules?

560


How do I truncate a word?

514


Inline the values in PL/SQL, what does it mean.?

619


what is normalization? : Sql dba

555