logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Explain how PL/SQL exceptions are raised.


  • Correct Answer
  • PL/SQL exceptions are raised using the RAISE command This command is used when exceptions are defined by programmer and not implicit exceptions Example: Declare and raising an exception: DECLARE short_of_attendance EXCEPTION; min_attendance NUMBER(4); BEGIN IF min_attendance < 10 THEN RAISE short_of_attendance; END IF; EXCEPTION WHEN short_of_attendance THEN -- handle the error END; 


  • Technology problems


    Search Results


    • 1. Explain some of the commonly used Predefined PL/SQL Exceptions.
    • Discuss
    • 2. Define cursor attributes: %FOUND, %NOTFOUND, %ROWCOUNT, and %ISOPEN
    • Discuss
    • 3. What is a PL/SQL Record data type?
    • Discuss
    • 4. What is a Collection? Explain collection types.
    • Discuss
    • 5. How can we call DDL statements like CREATE, DROP, TRUNCATE, etc. from PL/SQL?
    • Discuss
    • 6. What is a PL/SQL package? what are its Advantages ?
    • Discuss
    • 7. Define PL/SQL sequences and write syntax for a sequence
    • Discuss
    • 8. What does cache and no cache options mean while creating a sequence?
    • Discuss
    • 9. What is an Index? Explain how to create an Index.
    • Discuss
    • 10. Explain how to create users through SQL PLUS.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment