join은 번거로우니 set 에다가 select로 값을 때려 넣기라는 좋은 방법이 있었네?
| UPDATE table1 SET price=(SELECT price FROM table2 WHERE table1.id=table2.id); |
'프로그램 사용 > postgreSQL' 카테고리의 다른 글
| postgresql ctid (0) | 2019.10.29 |
|---|---|
| coalesce() / isnull() (0) | 2019.10.29 |
| array_agg()와 unnest() (0) | 2019.10.28 |
| postgres tde pgcrypto (0) | 2019.10.25 |
| sql ' escape (0) | 2019.10.21 |
