logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is a Trigger? Explain Types of PL/SQL Triggers.


  • Correct Answer
  • A database trigger is procedural code that is automatically executed in response to certain events on a particular table or view in a database The trigger is mostly used for maintaining the integrity of the information on the database Syntax: CREATE OR REPLACE TRIGGER [Trigger Name] [Before / After / Instead Of] ON [schema][table] Types of PL/SQL triggers : > Row trigger - The trigger fires for each ROW affected > Statement trigger - The trigger is fired once when the condition is matched > Before and After trigger - The BEFORE trigger run the trigger action before the insert, update or delete statement The AFTER trigger runs the trigger action after the insert, update or delete statement is executes 


  • Technology problems


    Search Results


    • 1. What are PL/SQL Subprograms? What are its Advantages ?
    • Discuss
    • 2. What are Cursors? Explain Types of cursors in PL/SQL
    • Discuss
    • 3. What are the uses of synonyms?
    • Discuss
    • 4. What is ANALYZE command used for?
    • Discuss
    • 5. How to create a basic text file in php?
    • Discuss
    • 6. What are transaction isolation levels supported by Oracle?
    • Discuss
    • 7. Can you explain how to insert an image in table in oracle?
    • Discuss
    • 8. 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
    • 9. What is DocumentDB ?
    • Discuss
    • 10. What is the maximum number of Triggers can be applied in a table ?

    • Options
    • A. 8
    • B. 9
    • C. 12
    • D. 14
    • Discuss


    Comments

    There are no comments.

Enter a new Comment