Completely copying a postgres table with SQL

前端 未结 7 1322
春和景丽
春和景丽 2021-01-30 06:13

DISCLAIMER: This question is similar to the stack overflow question here, but none of those answers work for my problem, as I will explain later.

I\'m t

7条回答
  •  不要未来只要你来
    2021-01-30 06:48

    create table newTableName (like oldTableName including indexes); insert into newTableName select * from oldTableName

    This worked for me 9.3

提交回复
热议问题