MySQL Forums
Forum List  »  Triggers

Re: Before Insert Trigger
Posted by: Peter Brawley
Date: July 28, 2019 08:19PM

> I am trying to set up a trigger which inserts into another table
> (chain_gear) however I only wish to show TagId "11" within the
> chain_gear table

You mean do the insert only if new.tagid=11? That would be ...

if new.tagid=11 then
  insert into chain_gear ...
end if;



Edited 1 time(s). Last edit at 07/28/2019 08:19PM by Peter Brawley.

Options: ReplyQuote


Subject
Views
Written By
Posted
333
July 28, 2019 04:32PM
Re: Before Insert Trigger
162
July 28, 2019 08:19PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.