【发布时间】:2021-01-04 07:07:57
【问题描述】:
我有一个名为 contests 的数据库,我想创建它的副本
参考这个问题的最佳答案:Copy a table (including indexes) in postgres
我执行了以下命令:create table contests_clean ( like contests INCLUDING ALL );
它确实使用modifiers 和indexes 在数据库中的\d contests 中创建了一个新表,但它没有复制引用(Referenced by 在\d contests 中查看)
我需要在命令中添加什么以包含 References 以及(Referenced by 在 \d contests
中查看
请询问任何需要的更多详细信息
【问题讨论】:
标签: postgresql