AFTER INSERT Trigger

This is a discussion on AFTER INSERT Trigger within the MySQL Database forums, part of the Database Forums category; Hi guys, I know this is a dumb question (but, I have not used triggers in years...) :-) The following is ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-16-2007
soraya_soch@yahoo.com
 
Posts: n/a
Default AFTER INSERT Trigger

Hi guys,

I know this is a dumb question (but, I have not used triggers in
years...) :-)
The following is not working... what am I missing?

TIA,

S.

CREATE TABLE feeder(value double);
CREATE TABLE dash(value double);

CREATE TRIGGER upt_delta
AFTER INSERT ON feeder
FOR EACH ROW
BEGIN
UPDATE dash a
SET a.delta = NEW.value;
END
;

INSERT INTO feeder VALUES (10.2);

Reply With Quote
  #2 (permalink)  
Old 07-16-2007
soraya_soch@yahoo.com
 
Posts: n/a
Default Re: AFTER INSERT Trigger

Scratch that.... after re-reading I noticed I wasn't awake and that I
wrote crap......... sorry

;-)

S.

Reply With Quote
Reply
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:18 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0