Garayed.com  

Go Back   Garayed.com > mySQL
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-16-2007, 10:09 AM
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);

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-16-2007, 10:14 AM
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

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



All times are GMT. The time now is 02:21 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.