사용자 도구

사이트 도구


postgres-tips

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
postgres-tips [2021/04/13 11:40]
gsjung
postgres-tips [2021/04/13 11:40] (현재)
gsjung [DB 간 Table 옮기기]
줄 13: 줄 13:
 [[https://stackoverflow.com/questions/3195125/copy-a-table-from-one-database-to-another-in-postgres]] [[https://stackoverflow.com/questions/3195125/copy-a-table-from-one-database-to-another-in-postgres]]
  
-<Code:sql>+<Code:bash>
 # 옮기는 쪽 DB에 테이블이 없을 때 # 옮기는 쪽 DB에 테이블이 없을 때
 pg_dump -t table_to_copy source_db | psql target_db pg_dump -t table_to_copy source_db | psql target_db
postgres-tips.1618314041.txt.gz · 마지막으로 수정됨: 2021/04/13 11:40 저자 gsjung