I have two tables.
table_a table_b
idA idB nameA nameB remarkA1 remarkB remarkA2
Update from Comment: Code I have tired
UPDATE table_b
SET remarkB = table_a.remarkA1
FROM table_a WHERE table_b.id = table_a.id
But this code I can only update one value to column remarkB,If i want update values in table_b
from table_a
by update values from
remarkA1
, remarkA2
to remarkB
How should I write?