What is difference between % ROWTYPE and TYPE RECORD ?

Answers were Sorted based on User's Feedback



What is difference between % ROWTYPE and TYPE RECORD ?..

Answer / suresh kumar somayajula

%ROWTYPE is to be used whenever query returns a row of
Database Table.

RECORD TYPE is to be used whenever query returns a columns
of different Tables.

Eg : TYPE <TYPE_NAME> IS RECORD (Name Varchar2,
No Number);

Thank you,
Suresh

Is This Answer Correct ?    15 Yes 4 No

What is difference between % ROWTYPE and TYPE RECORD ?..

Answer / sohail

The %ROWTYPE attribute provides a record type that
represents a row in a table.
Create Type is used to create a type with multiple
variables and is stored in the database.

Is This Answer Correct ?    9 Yes 2 No

Post New Answer

More SQL PLSQL Interview Questions

what is difference between delete and truncate commands? : Sql dba

0 Answers  


How to come back in normal stage in Mutating Table if mutating table is locked or update data?

2 Answers  


Which data type is a composite type?

0 Answers  


Is json a nosql?

0 Answers  


Is sql better than excel?

0 Answers  






how to create user in sql and how to set password for that?

3 Answers  


What is column?

0 Answers  


I have a tablle like this: cust acc ----------- a 1 b 2 b 3 c 4 c 5 c 6 I Want below o/p: cust acc --------------- a 1 b 2|3 c 4|5|6 Please any one can you have any ideas share me. I have urgent requirement.

7 Answers   MTS,


what is the purpose of update command in oracle?

7 Answers   MBT,


Explain how to use transactions efficiently : transact sql

0 Answers  


What is 19 null in sql?

0 Answers  


How consistent is the view of the data between and within multiple sessions, transactions or statements ?

0 Answers  


Categories