I have two tables name "test" and "dev"

i am having old data in dev table.

i am having new data in test table.

now i need to update the rows in dev table where primary key is same and insert the row in dev table where the primary key is not same.

thanks in advance