Trigger Count Insert and delete

Asked

Viewed 15 times

0

I have a problem in a Rigger that I have here, I want this Rigger after counting and inserting in table x, it deletes the value he searched in table y, can make him count and insert but I’m not able to make him count, insert and then delete.

My code:

BEGIN
    UPDATE g5_member 
    set mb_credit = mb_credit + (ROUND(RAND()*10,0)%7) + 10 
    WHERE mb_id = NEW.PlayerID;
    DELETE FROM PlayerID;
END
  • What mode is Rigger being mounted in? Before or after what actions?

  • Publish the whole code . Is there an error ? Trigger is in which table ?

  • Sorry I haven’t answered before, the code is just that right there, the code I entered the points normally, but I want after inserting it to delete the information from the other table!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.