update table a set a.ziduan=
(select b.ziduan from table b
where b like '%123%' and a.id=b.id)
更新a表中的字段名稱列,為b表查詢出來字段,記住要對應的id,不然就會出現一對多的情況.更新失敗
update table a set a.ziduan=
(select b.ziduan from table b
where b like '%123%' and a.id=b.id)
更新a表中的字段名稱列,為b表查詢出來字段,記住要對應的id,不然就會出現一對多的情況.更新失敗