答案 0 :(得分:4)
[ WITH [ RECURSIVE ] with_query [, ...] ] UPDATE [ ONLY ] table [ [ AS ] alias ] SET { column = { expression | DEFAULT } | ( column [, ...] ) = ( { expression | DEFAULT } [, ...] ) } [, ...] [ FROM from_list ] [ WHERE condition | WHERE CURRENT OF cursor_name ] [ RETURNING * | output_expression [ [ AS ] output_name ] [, ...] ]
UPDATE TableB AS B
SET geom = A.geom
FROM TableA AS A
WHERE B.join_id = A.id
注意强>
我在geom
上看不到列TableB
,因此您可能需要先创建列
ALTER TABLE TableB ADD COLUMN geom geometry;