2013年12月25日 星期三

用其它的 Table 來更新資料


t1:為要被更新的資料表
t2:為來源資料表

語法:
update t1
set t1.email = t2.email
from t2
where t2.name = t1.name

沒有留言: