I have a simpledb column 'Status' I want to get rid of it. How can I delete it ? I dont see any intuitive way to do so.

Thanks

有帮助吗?

解决方案

Since SimpleDB is a schema-less database each item may have different sets of attributes. In order to remove a particular attribute from all items you're going to need the itemNames for all items containing the attribute.

If you've decided to emulate a relational table in SimpleDB (by having one domain per 'table' and uniform attributes per item) you can retrieve all itemNames by a simple select query select itemName from domainX.

Once you've got the itemNames for the items which contain your unwanted attribute you'll need to call DeleteAttributes once for each item.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top