create trigger trg_updt
after update on product
for each row
begin
update product set total=price+vat;
end;
table name=product
pid pname price vat total
1 ball 50 25 75
2 bat 85 15 100
i want when i run ---------update product set vat=20 where pid=2;
question.......it should automatically update total by trigger