How to merge two tables overwriting the elements which are in both? April 27, 2023 by Tarik for k,v in pairs(second_table) do first_table[k] = v end