phpmyadmin - mysql error any help will be apreciated -
I want to create a trigger, which is about to be my position that a new row insert satified (Latest version = 1) begin to enter the wp_stattype2_3_activite for each line before remiseazero all privious line will be updated with the latest build version = 0 trigger NEWklatestversion = 1 then latestversion update wp_stattype2_3_activite group = 0 where typecas = new. Typecas; end if; END; $$
Error:
# 1064 - is an error in your SQL syntax; Manual is that the correct syntax 'line use 9 to check that corresponds to your MySQL server version
text after
Place delimiter and remove ;.
end
after
delimiter $$ TRIGGER remiseazero begin to create before putting on wp_stattype2_3_activite for each row (NEW.latestversion = 1) Update wp_stattype2_3_activite set latest version = 0 where typecas = NEW.typecas; end if; END $$ DELIMITER;
Comments
Post a Comment