在 n1ql 的 WHERE 子句中使用点符号
Using dot notation in the WHERE clause of n1ql
n1ql 是否支持点符号以允许根据 JSON 子字段的值过滤结果?
应该使用 =
还是 is
运算符?
以下命令可用于过滤子字段:
SELECT * from `bucket` WHERE info.category = 'SPECIFIC_CATEGORY';
documentation 说明何时应使用 IS
运算符:
The IS/IS NOT NULL/MISSING family of operators lets you specify conditions based on the existence (or absence) of attributes in a data set.
您可能希望 运行 通过 N1QL Tutorial。
n1ql 是否支持点符号以允许根据 JSON 子字段的值过滤结果?
应该使用 =
还是 is
运算符?
以下命令可用于过滤子字段:
SELECT * from `bucket` WHERE info.category = 'SPECIFIC_CATEGORY';
documentation 说明何时应使用 IS
运算符:
The IS/IS NOT NULL/MISSING family of operators lets you specify conditions based on the existence (or absence) of attributes in a data set.
您可能希望 运行 通过 N1QL Tutorial。