sql - MySQL trigger not working. What could be the issue? -


i need update existing table after insert on table. have.

delimiter $$ create trigger `some_trigger` after insert on `old_table` each row begin update `new_table` set `some_column` = new.`column` `new_table`.id = new.id end $$ delimiter; 

trigger definition executed , trigger exists sql_mode - no_engine_substitution definer - root@%

is there horribly wrong this?

can please confirm new.id i.e id generated on old_table insertion present in new table ? because possible reason in new table new.id not present @ time on old_table insertion.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -