How to Add a Column in DynamoDB

后端 未结 4 1293
無奈伤痛
無奈伤痛 2021-01-31 00:47

Is there a way to add a new column to existing table in DynamoDB in Amazon\'s AWS?

Google didn\'t help,

UpdateTable Query in http://docs.aws.amazon.com/cli/lat

4条回答
  •  孤独总比滥情好
    2021-01-31 01:37

    A way to add a new column to existing table in DynamoDB in Amazon's AWS:

    We can store the values in DynamoDb in 2 ways, (i) In an RDBMS Type of Structure for the DynamoDB, we can add a new Coulmn by executing the same command keeping the "new Column" entry within which the Records in the Existing Table has been created. we can use DynamoDb with the Records/ Rows having Values for certain Columns while other columns does not have Values.

    (ii) In a NoSQL kind of Structure; where we store a Json String within a Column to keep all the attributes as per the Requirement. Here we are generating a json string and we have to add the new Attribute into the json String which can then be inserted into the same Column but with the new Attribute.

提交回复
热议问题