cli에서 update 칠때를 위한 포스팅 입니다.
update 테이블명
set 칼럼명=바꿀값
where 조건;
실 사용 예시
* where를 생략하면 해당 테이블의 모든 데이터 들이 업데이트 됩니다.
* postgresql에서 데이터베이스 변경 /c [데이터베이스 이름]
출처 : https://dog-developers.tistory.com/172
'데이터베이스 > postgresql' 카테고리의 다른 글
Postgres timezone!! (0) | 2022.02.26 |
---|---|
Postgres type casting (0) | 2022.02.26 |
Postgres에 백업하기 (0) | 2020.02.02 |