🌷🌼모여봐요 개발의숲🌷🌼

[postgresql] psql로 테이블 dump export하기 본문

개발/SQL

[postgresql] psql로 테이블 dump export하기

요일이 2022. 1. 13. 10:31
반응형

postgres가 깔려있는 서버에 접속하여 권한을 postgres로 바꾼 후

psql로 이 명령어를 입력하면 된다.

pg_dump -d DB이름 -U DB유저이름 -t 테이블명 > 테이블명.sql
Comments