What are the Restrictions on Cursor Variables?

Answers were Sorted based on User's Feedback



What are the Restrictions on Cursor Variables?..

Answer / jyothsna

cursor variables are subject to the following
restrictions:You cannot declare cursor variables in a
package spec. For example, the following declaration is not
allowed:CREATE PACKAGE emp_stuff AS TYPE EmpCurTyp IS REF
CURSOR RETURN emp%ROWTYPE; emp_cv EmpCurTyp; -- not
allowedEND emp_stuff;You cannot pass cursor variables to a
procedure that is called through a database link.If you
pass a host cursor variable to PL/SQL, you cannot fetch
from it on the server side unless you also open it there on
the same server call.You cannot use comparison operators to
test cursor variables for equality, inequality, or
nullity.You cannot assign nulls to a cursor
variable.Database columns cannot store the values of cursor
variables. There is no equivalent type to use in a CREATE
TABLE statement.You cannot store cursor variables in an
associative array, nested table, or varray.Cursors and
cursor variables are not interoperable; that is, you cannot
use one where the other is expected. For example, you
cannot reference a cursor variable in a cursor FORloop

Is This Answer Correct ?    10 Yes 0 No

What are the Restrictions on Cursor Variables?..

Answer / swapna

You cannot store cursor variables in an associative array,
nested table, or varray.Cursors and cursor variables are
not interoperable;

that is, you cannot use one where the other is expected.
For example, you cannot reference a cursor variable in a
cursor FOR loop.

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More SQL PLSQL Interview Questions

Is sql low level language?

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 are the basic techniques of indexing?

0 Answers  


Could you please provide oca (oracle 10g) dumps for my certification ?

1 Answers  


what is the difference between where clause and having clause? : Sql dba

0 Answers  






what tools available for managing mysql server? : Sql dba

0 Answers  


What is package in pl sql with an examples?

0 Answers  


i want run a sql query query? which phases are run in a back ground? pls tell me the answer

1 Answers  


What are the usages of sql?

0 Answers  


What are reports usually used for?

0 Answers  


What is a join?

0 Answers  


How can I delete duplicate rows?

0 Answers  


Categories