我不能在DynamoDB中比较两个不同的属性吗? [英] Can't I compare two different attributes in DynamoDB?

查看:105
本文介绍了我不能在DynamoDB中比较两个不同的属性吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Dynamo Db的新手。我的应用程序说我需要编写一个程序,其中两个属性必须通过它们的日期值进行比较。我为此使用了GSI,但发现的是,使用GSI我可以查询所有属性,但可以分别查询。但是我必须通过它们的日期值比较两个不同的属性,以便我可以在应用程序中继续前进。
谢谢:)

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 :)

推荐答案

您不能比较两个属性。 DynamoDB条件绑定到属性。您将必须在应用程序级别编写此条件

You can not compare two attributes. DynamoDB conditions are bound to an attribute. You will have to write this condition in application level

这篇关于我不能在DynamoDB中比较两个不同的属性吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆