logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What are Cursors? Explain Types of cursors in PL/SQL


  • Correct Answer
  • Cursors help you manipulate the information retrieved by select statements This can be done by assigning a name to the cursor Example: CURSOR emp_cur IS SELECT emp_number from employee_tbl where employee_name = name_in; Types of Cursors: Implicit cursors- These cursors are not declared by the programmer They are issued when the SQL statement is executed The open, close and fetching is done by itself Example: UPDATE employee SET salary = salary * 21; Here, an implicit cursor is issued to identify the set of rows in the table which would be affected by the update Explicit cursors- These cursors are defined by programmer They are used in queries that return multiple rows Example: CURSOR emp_cur IS SELECT emp_number from employee_tbl where employee_name = name_in; 


  • Technology problems


    Search Results


    • 1. What are the uses of synonyms?
    • Discuss
    • 2. What is ANALYZE command used for?
    • Discuss
    • 3. How to create a basic text file in php?
    • Discuss
    • 4. What's the difference between Session and Cookie?
    • Discuss
    • 5. What is the purpose $_PHP_SELF variable?
    • Discuss
    • 6. What are PL/SQL Subprograms? What are its Advantages ?
    • Discuss
    • 7. What is a Trigger? Explain Types of PL/SQL Triggers.
    • Discuss
    • 8. What are transaction isolation levels supported by Oracle?
    • Discuss
    • 9. Can you explain how to insert an image in table in oracle?
    • Discuss
    • 10. Which of the following are elements of SQL?

    • Options
    • A. base-table-identifier ::= user-defined-name
    • B. base-table-name ::= base-table-identifier
    • C. boolean-primary ::= comparison-predicate
    • D. All the above
    • Discuss


    Comments

    There are no comments.

Enter a new Comment