Go Back   CodingForums.com > :: Server side development > MySQL

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Old 02-07-2005, 10:45 AM   PM User | #1
creations
New to the CF scene

 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
creations is an unknown quantity at this point
Question Mysql Trigger Error

Hi everyone,

I've got a table test with 2 fields (Name (Varchar) and ischanged (tynyint(1))). I'm trying to create a trigger on this table, pls can some1 tell me whatz wrong with this syntax:

CREATE TRIGGER trig_test
AFTER INSERT ON test
FOR EACH ROW
BEGIN
SET NEW.isChanged = 1;
END




Creations
creations is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:24 AM.

Home - Contact Us - Archives - Link to CF - Resources - Top 

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.