AWS SimpleDB CLI:如何使用“选择”命令?

宝琳

我正在尝试select从 AWS CLI使用AWS SimpleDB 的命令。

所需的调用如下: select --select-expression <value>

select-expression被描述如下:--select-expression (string) The expression used to query the domain.

select 应该类似于SQLselect 语句,但是我不断收到有关语法的错误,例如:

aws sdb select --select-expression "select * from my-domain"

An error occurred (InvalidQueryExpression) when calling the Select operation: The specified query expression syntax is not valid.

我也找不到任何关于正确使用语法的文档或示例。

宝琳

我找到了解决方案 - 结果我需要对查询使用单引号,并在表名周围使用特殊字符:

aws sdb select --select-expression 'select * from `my-domain`'

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章