Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 1st, 2007, 03:41 AM
Authorized User
 
Join Date: Aug 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default oracle database trigger

i want to create a database trigger that can update after i commit from form (same table).
example:
After keyin at the form (table cinduk), when i press commit, it pick up a status from table csalah and update to table cinduk using dbtrigger automatically.
Can somebody help me on this.

 
Old October 3rd, 2007, 12:41 AM
Authorized User
 
Join Date: Sep 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to prabodh_mishra
Default

CREATE OR REPLACE TRIGGER <trigger_name>
AFTER UPDATE OF <fieldname> ON <table>
FOR EACH ROW -- as per requirement
WHEN(<condition>) --check usage of OLD and NEW keywords
DECLARE
   x NUMBER;
BEGIN
--update statement
--check usage of OLD and NEW keywords
END;


Cheers,
Prabodh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle Database csharpcoded C# 2005 1 February 13th, 2008 05:29 AM
Oracle Database Connection jmss66 Classic ASP Databases 2 October 18th, 2006 03:13 PM
oracle trigger (how to move forward) timbal25 Oracle 0 July 18th, 2006 10:27 AM
Oracle Trigger help please... tnzabo Oracle 1 March 2nd, 2005 06:05 AM
Connecting an oracle database kelitu Oracle 0 September 4th, 2003 09:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.