On 10/7/06, Patrick Aljord <[EMAIL PROTECTED]> wrote:
thanx it works the trigger is created successfully but it has no
effect. here it is:
delimiter //
create trigger testref before insert on bookmarks
     for each row
     begin
     if new.title like '%xxx%'
     then
     set new.id='xxx';
     end if;
     end;
     //create trigger testref before insert on bookmarks
    -> for each row
    -> begin
    ->   declare dummy char(2);
    ->   if new.title like '%xxx%'
    ->   then
    ->     set dummy = 'xxx';
    ->   end if;
    -> end;
    -> //
(those are the two different triggers I tried)

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to