join은 번거로우니 set 에다가 select로 값을 때려 넣기라는 좋은 방법이 있었네?
UPDATE table1 SET price=(SELECT price FROM table2 WHERE table1.id=table2.id); |
[링크 : https://stackoverflow.com/questions/1746125/...]
'프로그램 사용 > postgreSQL' 카테고리의 다른 글
postgresql ctid (0) | 2019.10.29 |
---|---|
coalesce() / isnull() (0) | 2019.10.29 |
다른 테이블의 값을 이용하여 값 update 하기 (0) | 2019.10.28 |
array_agg()와 unnest() (0) | 2019.10.28 |
postgres tde pgcrypto (0) | 2019.10.25 |
postgresql rank() over() (0) | 2019.10.04 |
댓글을 달아 주세요