update X set b=Y.c
from Y   --这样就行了
where X.a=Y.c