I'v tester and it works great for me.
But you can check them out:
UPDATE product p , helper h SET p.picture = h.picture WHERE p.gotpicture=0 AND p.productcode = h.productcode;
or
UPDATE product p SET p.picture = (select h.picture from helper h where p.productcode = h.productcode) WHERE p.gotpicture=0 AND p.productcode in (select h.productcode from helper h);
source share