gp 数据库批量修改

语法说明
UPDATE [ ONLY ] table SET column = { expression | DEFAULT } [, ...]
    [ FROM fromlist ]
    [ WHERE condition ]


例子:
update table1 t1 set t1. name=t2.name from table2 t2 where t1.id=t2.id and t1.name is null;

猜你喜欢

转载自blog.csdn.net/tangpengh/article/details/51832655
GP