Explain the difference between cursor declared in procedures and cursors declared in the package specification?
Answer / Kunal Jyoti
A cursor declared in procedures is a temporary, server-side variable that holds the result set of a SQL query. It is created and destroyed within the scope of the procedure. On the other hand, cursors declared in package specifications are persistent, meaning they exist until explicitly dropped or the database is shut down. They can be used across multiple procedures.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the advantages of stored procedure?
Mention what pl/sql package consists of?
What view means?
Can procedure in a package be overloaded?
Are stored procedures compiled?
Q1.all the depts which has more then 10 empls? Q2.all the dept which does not have any emply? Q3 all the emp which does not have any dept? Q4 get all the emply detais with the dept details it dept is exit otherwise any emp details? Q5 how to debugg the dynamic sql and packages?
What is the best strategy to use COMMIT in a pl/sql loop?
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.
What is a database? Explain
How do you break a loop in pl sql?
Explain what is an index?
What is sql select statement?
Oracle (3253)
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)