What are % TYPE and % ROWTYPE ? What are the advantages of
using these over datatypes?

Answer Posted / nishi

%TYPE provides the data type of a variable or a database column to that variable.

%ROWTYPE provides the record type that represents a entire row of a table or view or columns selected in the cursor.

The advantages are :

I. Need not know about variable's data type.

II.If the database definition of a column in a table changes, the data type of a variable changes accordingly.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is 'mysqlcheck'? : Sql dba

577


Does sql use python?

565


What is using in sql?

568


how to increment dates by 1 in mysql? : Sql dba

542


How do rank () and dense_rank () differ?

522






What are the main features of cursor?

631


What is a table?

569


What sql database should I use?

553


Which operator is used in query for pattern matching?

629


Difference between global and parameter variables?

1461


what is a constraint? : Sql dba

715


Can we use threading in pl/sql?

521


Define join and name different types of joins?

520


What are different types of functions in sql?

511


Can we use insert statement in function?

516