ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Databases  >>  SQL PLSQL
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
What is a REF CURSOR? Compare strong and week ref cursor types.
 Question Submitted By :: Gurusuryas
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is a REF CURSOR? Compare strong and week ref cursor types.
Answer
# 1
For the strong ref cursor the returning columns with
datatype and length need to be known at compile time.

For the weak ref cursor the structure does not need to be
known at compile time.

TYPE WEAK_REF_CURSOR IS REF CURSOR;

TYPE STRONG-_ REF_CURSOR IS REF CURSOR RETURN
TABLE_NAME%ROWTYPE;
 
Is This Answer Correct ?    1 Yes 1 No
Shailendra Chauhan
 
  Re: What is a REF CURSOR? Compare strong and week ref cursor types.
Answer
# 2
Ref cursor is a cursor variable which acts as a pointer to 
the sql memory area.
Ref cursor can be asssociated with multiple sql statements 
where as a cursor can be associated with only one sql 
statement.
Refcursor is dynamic where as cursor is static.
Ref cursors are of two types:
1)strong ref cursor:which retuns value.
2)week ref cursor:which doesn't return value.


thanks and regards
B.V.Srinivas.
 
Is This Answer Correct ?    1 Yes 1 No
B.v.srinivas
 
 
 
  Re: What is a REF CURSOR? Compare strong and week ref cursor types.
Answer
# 3
i have doubt ref cursor comes in pl/sql r not. pls clarify
any one
 
Is This Answer Correct ?    0 Yes 0 No
Nagapawan
 

 
 
 
Other SQL PLSQL Interview Questions
 
  Question Asked @ Answers
 
Do view contain data? Ramco2
What is the difference between sql/pl-sql/embeded sql?  2
difference between pl/sql table and normal pl/sql table  2
What is the basic structure of PL/SQL ?  4
What SQL keyword must immediately follow the UNION ALL statement? 1. SELECT 2. INTO 3. ORDER 4. WHERE 5. JOIN  2
package specification-3 procedures package body-4 procedures how can i write for other procedure in package body Reliance2
diff b/w sub query and co-relater query? iFlex3
What is the result, when NULL is compared with NULL? TCS10
What are nested triggers ? TCS4
How you will create Toad Function?  1
how do u call in & out parameters for stored procedures? A1-Technology7
If a View on a single base table is manipulated will the changes be reflected on the base table?  3
How can we overcome recursive triggers in SQL? iFlex1
in materialized view the structure will create immediately or not? iFlex2
How to call DDL statements from pl/sql?  3
Can we write create command in the plsql block?if possible how?  2
how to retrieve only duplicate values in a table  1
what is the purpose of update command in oracle? MBT6
Dear All, Question for this Week Find out possible error(s) (either at compile time or at runtime) in the following PL/SQL block. State the reason(s) and correct the errors. Declare Cursor C1 is select ename, sal, comm from emp; Begin For i in C1 Loop If i.comm between 299 and 999 then Dbms_output.put_line(i.Ename || ‘ ** Good Commission’); Elsif i.comm > 999 then Dbms_output.put_line(i.Empno || ‘ ** Very Good Commission’); close C1; Else Dbms_output.put_line(i.Ename || ‘ ** ’ ||nvl(i.comm,‘O’)); End if; End Loop; End; Accenture5
How will we see framework of a table? Accenture2
 
For more SQL PLSQL Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com