0

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

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

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

1 回答 1

0

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

从 Table1_TBL 中选择 *,其中 col1 < 100 且 col1 >10 且 col2 = 'VAL1'。

于 2021-01-13T07:26:47.390 回答