update a set a.nickname=b.nickname from tab1 a,tab2 b where a.username=b.username 转载于:https://www.cnblogs.com/andy_tigger/archive/2009/10/20/1587001.html