SQL: cross-table updates
Because I always forget how to do it, and always have to look up the syntax... Here's how to update table A with values from table B.
SET name = B.name
FROM B
WHERE A.id = B.id;
Because I always forget how to do it, and always have to look up the syntax... Here's how to update table A with values from table B.
There are no comments for this entry.
[Add Comment]