2013-10-24 61 views

回答

5
update t1, t2 set t1.value = t2.p_value where t1.id=t2.parent_id 
0

試試這個

update t1 join t2 on t2.parent_id= t1.id set t1.value = t2.p_value 
1

試試這個:

Update t1, t2 set t1.value = t2.p_value where t1.id = t2.parent_id; 
相關問題