gpt4 book ai didi

google-cloud-platform - 控制点 : Can we modify primary key of an existing table in spanner

转载 作者:行者123 更新时间:2023-12-05 02:11:59 27 4
gpt4 key购买 nike

我想将 Spanner 中现有表的主键从 Col1 修改为 Col1 和 Col2 的组合。可以在 Spanner 中实现吗?

此选项在控制台中不可用。也许可以用脚本来完成!

最佳答案

The keys of a table can't change; you can't add a key column to an existing table or remove a key column from an existing table.

Schema and data model | Cloud Spanner Documentation | Google Cloud

关于google-cloud-platform - 控制点 : Can we modify primary key of an existing table in spanner,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56647996/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com