GBase 8a
适配迁移
文章
GBase 8a数据库多表关联更新update
GBase社区管理员发表于2020-08-27 17:33:32194次浏览0个评论
GBase 8a数据库,在update时,支持多表关联更新,类似多表关联select, 可以通过多表关联对指定的表字段进行更新。
参考
语法
update tableA, tableB
set tableA.val=tableB.val
where tableA.id=tableB.id
其中set里面的tableA.val代表更新的表是tableA。
更新条件是满足where的部分
评论已关闭
热门帖子
- 12025-12-01浏览数:182759
- 22023-05-09浏览数:25044
- 42023-09-25浏览数:18519
- 52020-05-11浏览数:17526