I have 3 tables, i'm trying to find a way to update multiple rows using other tables data.
Update only null or empty "info" column in table1 with "data" column in the Table2 by checking if the id in table1 is linked to the idTab1 in table3 and the id in table2 is linking to idTab2 in Table3
enter code here
Table1
id, info
--------
1, null
2, info2
3, null
Table2
id, data
---------
1, info1
2, info2
3, info4
Table3
idTab1, idTab2
------
1, 1
2, 2
3, 3
The desired result is :
Table1
id, info
--------
1, info1
2, info2
3, info3
Thank you in advance.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…