카테고리 없음
[postgresql] 테이블 복사
진열사랑
2021. 4. 27. 17:02
다른 테이블 구조와 데이터 복사하기
CREATE TABLE newtable AS SELECT * FROM oldtable;
다른 테이블 구조만 복사하기
CREATE TABLE newtable ( LIKE oldtable );
출처: https://kugancity.tistory.com/entry/postgreSQL-다른-테이블-복사하기 [you've got to find what you love.]