Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > Oracle
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 1st, 2007, 03:41 AM
Authorized User
 
Join Date: Aug 2003
Location: , , Malaysia.
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.

  #2 (permalink)  
Old October 3rd, 2007, 12:41 AM
Authorized User
 
Join Date: Sep 2003
Location: Delhi, Delhi, India.
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:10 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.