开发者

How can i query to get the multiple values in SimpleDB (AWS)

开发者 https://www.devze.com 2023-02-18 18:16 出处:网络
jpg In that Picturei have colored one part. i have attribute called \"deviceModel\". It contains more than one value.. i want to take using query from my domain which ItemName() contains deviceMode

In that Picture  i have colored one part. How can i query to get these values like double entry in Simple Db AWS

enter image description herejpg

In that Picture i have colored one part. i have attribute called "deviceModel". It contains more than one value.. i want to take using query from my domain which ItemName() contains deviceModel attribute values more than one value.

Thanks,

Senthil Raj开发者_StackOverflow中文版a


There is no direct approach to get what you are asking.. You need to manipulate by writing your own piece of code. By running SELECT query you will get the item Attribute-value pair. So here you need to traverse each each itemName() and count values of your desire attribute.


I think what you are refering to is called MultiValued Attributes. When you put a value in the attribute - if you don't replace the existing attribute value the values will multiply, giving you an array of items connected to the value of that attribute name.

How you create them will depend on the sdk/language you are using for your REST calls, however look for the Replace=true/false when you set the attribute's value.

Here is the documentation page on retrieving them: http://docs.amazonwebservices.com/AmazonSimpleDB/latest/DeveloperGuide/ (look under Using Amazon SimpleDB -> Using Select to Create Amazon SimpleDB Queries -> Queries on Attributes with Multiple Values)

0

精彩评论

暂无评论...
验证码 换一张
取 消