当前位置: 代码迷 >> Informix >> 求将A表某个字段update到B表的SQL语句,该如何处理
  详细解决方案

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

热度:6405   发布时间:2013-02-26 00:00:00.0
求将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)
  相关解决方案