關於兩個表更新數據的問題(update)

轉摘post 我如今有兩張表.A與B A的字段有id,name,pwd... B的字段有userid,password 如今我想把A中pwd更新成B中的password(A中的id與B中的userid都是相對應於學生的ID),SQL語句應該怎麼寫呢??blog update A      set pwd = (select password from B where userid = A.id);
相關文章
相關標籤/搜索