hi, im a newbie and just read about triggers.. i am trying to create a trigger using navicat for mysql
in the triggers tab for the table i select new trigger with update after insert( these are the ready options it has)
then in the definition i addedDELIMITER || FOR EACH ROW BEGIN UPDATE tblitemstock SET TotalQuantity = (Totalquantity - NEW.qty) WHERE itemname=NEW.itemname; END || DELIMETER ;
but that gives me a syntax error..
pls help me in fixing this