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

What are the set operators in sql?

0 Answers  


What is before and after trigger?

0 Answers  


SQL Tuning, Oracle Server 10g: Why is the following hint invalid? SELECT /*+ first_rows parallel(table_name,paral_number)*/

1 Answers   Accenture,


What do you mean by “trigger” in sql?

0 Answers  


How do you display "13th of November, 17 days left for month end" without hardcoding the date.

3 Answers  






how to delete an existing column in a table? : Sql dba

0 Answers  


Define the select into statement.

0 Answers  


display null value rows with out using null function?

8 Answers   Infosys,


Is pl sql a programming language?

0 Answers  


Is sqlite good enough for production?

0 Answers  


what is the difference between binary_integer and pls_integer

2 Answers   TCS,


explain the difference between bool, tinyint and bit. : Sql dba

0 Answers  


Categories