문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | |||
postgres-tips [2021/04/13 11:40] gsjung |
postgres-tips [2021/04/13 11:40] gsjung [DB 간 Table 옮기기] |
||
---|---|---|---|
줄 13: | 줄 13: | ||
[[https:// | [[https:// | ||
- | <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 |