What is difference between % ROWTYPE and TYPE RECORD ?
Answers were Sorted based on User's Feedback
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 |
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 |
How do I debug a stored procedure?
what are the different types of joins?
What is integrity constraints?
What is sharding in sql?
Give the structure of the procedure ?
How do you rename a table in sql?
what is top in tsql? : Transact sql
How to run sql statements with oracle sql developer?
How can u find column name from a table which have max value in a row.( not max value)
Does sql*plus also have a pl/sql engine?
what are different types of collation sensitivity? : Sql dba
What is the default value of CHAR type?