【问题标题】:Redshift Truncate table and reset Identity?Redshift 截断表并重置身份?
【发布时间】:2020-10-26 02:37:10
【问题描述】:

我知道在 PostgresQL 中有

truncate table restart identity;

但这在 Redshift 中不起作用。在 Redshift 中还有其他方法可以做到这一点吗?否则我觉得删除表并重新创建和加载会很痛苦。

【问题讨论】:

    标签: amazon-web-services amazon-redshift


    【解决方案1】:

    无法像其他 sql 数据库一样在 redshift 中重新设置标识值。您必须创建新表并将数据移到那里。

    【讨论】:

      猜你喜欢
      • 2014-08-16
      • 2018-12-18
      • 2020-05-10
      • 2019-03-06
      • 1970-01-01
      • 1970-01-01
      • 2015-02-05
      • 1970-01-01
      • 2015-10-20
      相关资源
      最近更新 更多