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
What is the difference between subquery and correlated query?
What is trigger in pl sql?
describe mysql connection using mysql binary. : Sql dba
What is the importance of sqlcode and sqlerrm?
how many values can the set function of mysql take? : Sql dba
What is numeric function sql?
where are cookies actually stored on the hard disk? : Sql dba
How to return multiple rows from the stored procedure?
How to take user input in pl sql?
How does stored procedure reduce network traffic?
Is there a way to automate sql execution from the command-line, batch job or shell script?
What is latest version of sql?
List the ways to get the count of records in a table?
What is PL/SQL Records?
What does the base_object_type column shows in the user.triggers data dictionary view?