Исходный код вики UPDATE JOIN
Редактировал(а) Alexandr Fokin 2023/12/16 14:12
Последние авторы
author | version | line-number | content |
---|---|---|---|
1 | {{code language="sql"}} | ||
2 | update tmpTable1 as t1 | ||
3 | set | ||
4 | property1 = dt.property1 | ||
5 | from | ||
6 | ( | ||
7 | select query... | ||
8 | ) as dt | ||
9 | where t1.id = dt.id | ||
10 | {{/code}} | ||
11 | |||
12 | ---- | ||
13 | |||
14 | How to do an update + join in PostgreSQL? | ||
15 | https://stackoverflow.com/questions/7869592/how-to-do-an-update-join-in-postgresql | ||
16 |