What are the Restrictions on Cursor Variables?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is identity column in sql server?

710


What is compilation error in pl sql?

687


define join and explain different type of joins? : Sql dba

730


What will you get by the cursor attribute sql%rowcount?

751


What are the methods of filing?

673






What are the sql aggregate functions?

806


What is the usage of when clause in trigger?

754


Can I copy :old and :new pseudo-records in/to an oracle stored procedure?

865


What does pragma mean?

704


What is difference between sql and excel?

685


How to revise and re-run the last sql command?

828


Can we use join in subquery?

771


How much ram can sql express use?

695


What is the use of index in hive?

724


What is native sql query?

725