从SQL中的另一个表更新表值

时间:2018-11-10 14:41:51

标签: mysql sql

我有一个临时表havinf 2列,我需要将此数据更新到另一个表中

enter image description here

有人可以帮我吗

1 个答案:

答案 0 :(得分:0)

您要使用join,如下所示:

update othertable t join
       temporarytable tt
       on t.clientid = tt.clientid
    set t.checklist = tt.checklist;
相关问题