Results 1 to 4 of 4

Thread: Issues with database and forms triggers

  1. #1
    Join Date
    Nov 2009
    Posts
    39

    Issues with database and forms triggers

    I am so confused to create the triggers ! can you help me to differentiate between both triggers forms triggers and database triggers.please Help me to construct the triggers at forms level and database level with somewhat examples.And when it comes into the action.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Issues with database triggers

    Database triggers:

    A database trigger is a PL/SQL program that is created for a specific table or view.The code contain some action whenever the SQL command is in the execution like - when you will go to insert some values using INSERT statement,the trigger will contain some action upon INSERT that is coded by developer.
    A database trigger contains three sections

    1. A triggering event
    2. A trigger constraint
    3. Trigger action

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    Issues with forms triggers

    Forms Triggers:
    Forms triggers are also a collection of PL/SQL codes which is fired when an application generates any events, Like - When a user change the value of list items,etc.

    So many types of triggers are available in forms :
    · Key-triggers
    · Navigational-triggers
    · Transaction-triggers
    · Message-triggers
    · Error-triggers
    · Query based-triggers

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Creating database Trigger

    Creating database trigger :
    You can create a trigger upon modification of any table or database object.

    Code:
    CREATE [ OR REPLACE ] TRIGGER Name_of_trigger
     GROUP group_name
     [ DEBUG { TRUE | FALSE } ]
     [ ENABLED { TRUE | FALSE } ]
     PRIORITY integer
     [ COMMENT 'desired_string_comment' ]
     { BEFORE | AFTER } { INSERT | UPDATE | DELETE | REINSERT } 
     ON DB_name.object_name
     FOR EACH { ROW | STATEMENT }
     [ WHEN condition ]
     [ DECLARE variable_declaration ]
     BEGIN
       action_of_trigger
    END;

Similar Threads

  1. Five normal forms in Database Design
    By Gonercase in forum Software Development
    Replies: 6
    Last Post: 01-03-2011, 09:14 AM
  2. Types of triggers in MySQL
    By Arrosa in forum Software Development
    Replies: 6
    Last Post: 14-12-2010, 05:11 AM
  3. How to use triggers in Silverlight
    By Laskar in forum Windows Software
    Replies: 6
    Last Post: 07-08-2010, 09:48 AM
  4. Issues in C# application connecting to Remote MySQL 5 database.
    By kyosang in forum Software Development
    Replies: 5
    Last Post: 25-01-2010, 04:24 PM
  5. Triggers in SQL
    By Projectkmo in forum Software Development
    Replies: 0
    Last Post: 10-11-2008, 12:29 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,563,486.51578 seconds with 16 queries