Is it possible to issue something like
RENAME COLUMN col1 col2
in Google Cloud Spanner? It looks from the DDL that this isn't possible; if not, is this a design choice or a limitation whilst in Beta?
Is it possible to issue something like
RENAME COLUMN col1 col2
in Google Cloud Spanner? It looks from the DDL that this isn't possible; if not, is this a design choice or a limitation whilst in Beta?
No, this is not possible. Currently you can only do the following with regard to altering columns in a table:
STRING
and BYTES
STRING
and BYTES
NOT NULL
modifierA work around is possible by following these steps in order:
Keep in mind the above steps will not work for the primary key column, you'll have to do by creating a new table, and doing the data migration that way.
© 2022 - 2024 — McMap. All rights reserved.