GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  PL/SQL
Go To First  |  Previous Question  |  Next Question 
 PL/SQL  |  Question 18 of 166    Print  
Differentiate between %type and %rowtype attribute in Oracle PL/AQL programming ?

  
Total Answers and Comments: 5 Last Update: August 27, 2007     Asked by: skmishra_it 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 19, 2006 03:20:48   #1  
rachana        

RE: Differentiate between %type and %rowtype attribute...

The ROWTYPE is used to declare a record with the same datatype as found in specified database table view or cursor...

v_emprec emp ROWTYPE;

TYPE is used to declare a column with same type as that of specified table's column

v_empno emp.empno type;


 
Is this answer useful? Yes | No
April 23, 2006 03:14:54   #2  
Divesh        

RE: Differentiate between %type and %rowtype attribute...
ROWTYPE is declared at the record level and the TYPE is declared for the coloumn levek
 
Is this answer useful? Yes | No
February 13, 2007 20:05:02   #3  
madhuri        

RE: Differentiate between %type and %rowtype attribute...
type and rowtype provides data independence reduces maintainance cost and allows programs to adapt as the database changes due to new business requirements. rowtype is used to declare a record with the same types as found in the specified database table view or a cursor. type is used to declare a field with the same type as found in the specified table's column.
 
Is this answer useful? Yes | No
July 02, 2007 03:23:16   #4  
srikanthvijay8        

RE: Differentiate between %type and %rowtype attribute...
If you use a cursor you can return cursor values only by rowtype only.
 
Is this answer useful? Yes | No
August 27, 2007 01:25:21   #5  
jiten        

RE: Differentiate between %type and %rowtype attribute...
type will use for to define at column level.

rowtype is used to define for one or more than one columns ( like row or record or tuple ) means its user define type which hold one or more than one columns along with it. and generally it used with Cursor.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape