0

我在 d3 中进行了以下查询并得到以下结果:

:list      product-master with qoh > 99 and with categ eni
[401] no items present.
:list      product-master with qoh > 9 and with categ eni
[4] syntax error

为什么使用 99 的查询会解析,而使用 9 的查询会产生语法错误?

4

1 回答 1

0

默认 MD 有一个名为 '9' 的项目,而不是将该值视为文字,而是在“>”之后看到一个定义,这是不合法的。如果您将文字放在引号中,它将对您有用。

同样,您对 eni 的引用是模棱两可的。您是否打算查找 category = "eni",或者您正在搜索具有非空类别并显示名为 ENI 的字段的任何项目?引号消除了所有这些歧义。

请在验证后将此标记为答案。谢谢。

于 2014-11-07T23:09:51.340 回答