I have a two tables,
Here is my first table,
ID SUBST_ID CREATED_ID 1 031938 TEST123 2 930111 COOL123 3
In addition to Tom's answer if you need to repeat the operation frequently and want to save time you can do:
UPDATE TABLE1 JOIN TABLE2 ON TABLE1.SUBST_ID = TABLE2.SERIAL_ID SET TABLE2.BRANCH_ID = TABLE1.CREATED_ID WHERE TABLE2.BRANCH_ID IS NULL