What are the Restrictions on Cursor Variables?
Answers were Sorted based on User's Feedback
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 |
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 |
what tools available for managing mysql server? : Sql dba
What is a record in pl/sql?
What is compiled query?
consider a table which contain 4 columns,ename,eno,sal and deptno, from this table i want to know ename who having maximum salary in deptno 10 and 20.
What are the types of variable use in pl sql?
What trigger means?
Can we create index on primary key?
What is dbo in sql?
how do you login to mysql using unix shell? : Sql dba
Is it mandatory for the primary key to be given a value when a new record is inserted?
when is the use of update_statistics command? : Sql dba
I Defined SP1, Sp2 (sp=StoreProcedures)In Package Specification but I Implemented Sp1, sp2, sp3, sp4, sp5 then What type of Error You will find????
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)