I have two database say A and B.
A have a1 table having column names userid,pin_no and B database have b1 table having column names id,badge_no.
I want to insert data from a1 to b1 and b1 should get updated as and when a1 updates
you can do the insert with a simple select:
or inside a trigger:
same logic you can use for an update