查询不适用于 Oracle NoSQL 数据库中的 ENUM 字段

问题描述

我在 ENUM 字段上使用 WHERE 子句执行选择查询时遇到问题

这是一个不起作用的示例查询

kv-> execute "select * from  Table1_TBL where col1 < 100 and col1 >10 and Table1Summaries.values($value.col2 = 'VAL1')"

解决方法

通常,在比较中,枚举列的行为类似于字符串。因此,如果“col2”是声明为枚举的表“Table1_TBL”的列,则查询应如下所示:

select * from Table1_TBL where col1 10 and col2 = 'VAL1'.