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 |
What is coalesce in sql?
Is grant a ddl statement?
How many scalar data types are supported in pl/sql?
What are the different ways to optimize a sql query?
Why do we use sql constraints? Which constraints we can use while creating database in sql?
Is left join inner or outer by default?
how to remove records from table? no name 1 a 2 b 1 a 2 b 3 c
What is the difference between CHAR and VARCHAR2? If VARCHAR2 serves the uses of CHAR why CHAR is still used and not been discarded yet?
what are integrity rules?
what is text? : Sql dba
What do you mean by dbms? What are its different types?
What does count (*) do in sql?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)