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

Answer Posted / hjhjnj

Column Type (i.e. %TYPE) is used to declare a field with the same type as that of a specified table’s column

Row type (i.e. %ROWTYPE) is used to declare a record with the same types as found in the specified database table, view or cursor

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are literals in sql server?

520


What are the different ways to optimize a sql query?

478


What is nosql vs sql?

553


What is trigger types in sql?

524


What are the advantages of sql? Explain

636






Enlist some predefined exceptions?

570


What is a call statement? Explain with an example.

537


what are null values? : Sql dba

536


How can you create an empty table from an existing table?

582


what is normalization? : Sql dba

554


Can dml statements be used in pl/sql?

567


what are the differences between char and varchar? : Sql dba

517


what is schema? : Sql dba

552


What is mutating trigger?

567


Explain alias in sql?

574