Skip to content

Commit

Permalink
Update cf-database.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wanganxp committed Feb 28, 2020
1 parent b5aaa26 commit 0ad1c1b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/uniCloud/cf-database.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0ad1c1b

Please sign in to comment.