问题
I'm new to Dynamo Db. And my Application says I need to write a program in which two attributes must be compared by their date values. I used GSI for this but what I found was, using GSI I can query all the attributes but separately. But I have to compare two different attributes by their date values so that I can move forward in my application for further. Thank you :)
回答1:
You can not compare two attributes. DynamoDB conditions are bound to an attribute. You will have to write this condition in application level
来源:https://stackoverflow.com/questions/25993519/cant-i-compare-two-different-attributes-in-dynamodb