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 to use transactions efficiently : transact sql

769


What is the purpose of my sql?

684


Why do we use joins in sql?

693


Is sql the best database?

672


What is left join example?

677






What is the limitation on the block size of pl/sql?

705


What is the difference between clustered and non-clustered index in sql?

733


what are the performance and scalability characteristics of mysql? : Sql dba

723


what is not null constraint? : Sql dba

723


What is offset in sql query?

822


Why do we use partitions in sql?

721


What is microsoft t sql?

678


Can you call pl/sql package functions from within a fast formula?

769


How do you use a while loop in pl sql?

720


What is a schema sql?

743