JasonMcConnell
Technical User
Hi,
I am new to SQL and have created the following trigger in MS SQL Express but can't get it to work in MYSQL 5.0
Can anybody tell me what is wrong it say the sytanx is wrong
create trigger totalcost_c
on contacts_cstm
for insert,update as
if update (hatcost_c)
or update (shipping_c)
begin
update contacts_cstm
set totalcost_c = (hatcost_c + shipping_c)
end
Thanks for youe help
I am new to SQL and have created the following trigger in MS SQL Express but can't get it to work in MYSQL 5.0
Can anybody tell me what is wrong it say the sytanx is wrong
create trigger totalcost_c
on contacts_cstm
for insert,update as
if update (hatcost_c)
or update (shipping_c)
begin
update contacts_cstm
set totalcost_c = (hatcost_c + shipping_c)
end
Thanks for youe help