简体   繁体   English

AWS DynamoDB 扫描 CLI

[英]AWS DynamoDB scan CLI

I want to do this scan:我想做这个扫描:

在此处输入图像描述

Through CLI:通过 CLI:

aws dynamodb scan --table-name dev-XXX-transactions --select "*" --filter-expression "#idXXXTransaction = :idXXXTransaction" --expression-attribute-names "{\"#idXXXTransaction\": \"idXXXTransaction\"}"

But I'm not sure how can I do an "EXISTS" on a attribute, I know how to make an exact match.但我不确定如何对属性执行“EXISTS”,我知道如何进行完全匹配。 Any help?有什么帮助吗?

This is specified by the attribute_exists() function.这由attribute_exists() function 指定。 I believe your filter expression should be attribute_exists(idXXXTransaction) .我相信您的过滤器表达式应该是attribute_exists(idXXXTransaction)

The available expression operators and functions are documented here . 此处记录了可用的表达式运算符和函数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM