What cursor type do you use to retrieve multiple recordsets?
Answers were Sorted based on User's Feedback
Answer / guest
cursor <<cursorname>> is select * from <<table name>>
| Is This Answer Correct ? | 55 Yes | 16 No |
This ans opt for Oracle DB
---------------------------
SYS_REFCURSOR. this is what we called Explicit cursor.
In database if u run any sql statement by default system
will create a cursor. its called "Implicit cursor".
But in PL/SQL, we r using SYS_REFCURSOR to manupulate the
multiple records. that is called Explicit cursor.
| Is This Answer Correct ? | 15 Yes | 5 No |
Answer / venkat
using explict cursor we process multiple rows
syn:
cursor <cur_name> is select * from <tab_name>
| Is This Answer Correct ? | 3 Yes | 0 No |
What is use of term?
What are the different types of functions in sql?
explain primary keys and auto increment fields in mysql : sql dba
What are the benefits of pl/sql packages?
There are 5 records in a table and we have implemented two triggers that are :pre_query and post_query how many times these triggers will fire.
Can a select statement fire a trigger?
What is error ora-01000: maximum open cursors exceeded
Create table emp (id number(9), name varchar2(20),salary number(9,2)); The table has 100 records after table created.Now i nee to change id's Datatype is to be Varchar2(15). now Alter table emp modify(id varchar2(15),name varchar2(20), salary number(9,2)); Whether it will work or returns error? post answer with explanation.
How to call shell script from pl sql procedure?
what are local and global variables and their differences? : Sql dba
how to check the 3rd max salary from an employee table?
Is crud a cuss word?
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)