From 0ad1c1bd68dbab73e91e081d5ee01becf9cf55c4 Mon Sep 17 00:00:00 2001 From: wanganxp Date: Sat, 29 Feb 2020 06:53:05 +0800 Subject: [PATCH] Update cf-database.md --- docs/uniCloud/cf-database.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/uniCloud/cf-database.md b/docs/uniCloud/cf-database.md index 3a78befbe..2f595ce71 100644 --- a/docs/uniCloud/cf-database.md +++ b/docs/uniCloud/cf-database.md @@ -82,17 +82,18 @@ const collection = db.collection('user'); | 类型 | 接口 | 说明 | | -------- | ---- | ---------------------------------- | -| 比较运算 | eq | 字段 == | -| | neq | 字段 != | -| | gt | 字段 > | -| | gte | 字段 >= | -| | lt | 字段 < | -| | lte | 字段 <= | +| 比较运算 | eq | 字段等于 == | +| | neq | 字段不等于 != | +| | gt | 字段大于 > | +| | gte | 字段大于等于 >= | +| | lt | 字段小于 < | +| | lte | 字段小于等于 <= | | | in | 字段值在数组里 | | | nin | 字段值不在数组里 | | 逻辑运算 | and | 表示需同时满足指定的所有条件 | | | or | 表示需同时满足指定条件中的至少一个 | +如果你熟悉SQL,可查询[mongodb与sql语句对照表](https://blog.csdn.net/xinghebuluo/article/details/7012788/)进行学习。 ### 字段更新指令 Update Command -- GitLab