For example I have this kind of table
Table A
id col1 col2
1 aaa bbb
Table A_STG
stg_id id col1 col2
1 1 xxx yyy
how can I update Table A value based on column "id" with value from Table A_STG without mapping SET t1.col1 = t2.col1 and so on.
so the final result will be:
Table A
id col1 col2
1 xxx yyy
Thank you before.
Table A and A_STG have similar structure, the only difference is Table A_STG have "stg_id".
btw Table A.id is auto increment.