Login
Remember
Register
Ask a Question
Explain what Is The Advantage Of Using The %rowtype Datatype?
0
votes
asked
Mar 11, 2021
in
PL/SQL
by
Robindeniel
Explain what Is The Advantage Of Using The %rowtype Datatype?
#rowtype-datatype
plsql-datatype
plsql
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Mar 11, 2021
by
Robindeniel
The advantages of using the %ROWTYPE datatype to declare variables are given as follows:
It is useful to retrieve an entire row from a table. If you do not use the %ROWTYPE datatype, then you have to declare variables for each column separately.
It can be used even if datatype of the table columns is not known
It ensures that datatype of the variable changes dynamically if the underlying table is altered.
...