求将A表某个字段update到B表的SQL语句,该如何处理

求将A表某个字段update到B表的SQL语句
表A、表B共有字段X,

现要update表B的字段Z=表A的字段Y

求sql语句

------解决方案--------------------
试试
update b set z=(select y from a where a.x=b.x)
------解决方案--------------------
探讨
试试
update b set z=(select y from a where a.x=b.x)