tableONE
tb1_id tbl_name tb2_id
1 ab 0
tableTOW
insert into tableTOW("tb2_id, tb2_name,tb1_id) value('10,'name',1)
the result will be:
tb2_id tb2name tb1_id
10 name 1
Now the tableONE should be update the column tb2_id = 12 because on insert to tableTOW where the tb1_id was (1)
how i can set such trigger during insert update other table with where condition(WHERE tableTOW.tb1_id = tableONE.tb1_id)..
regards