From e5f64da886cda0203d79cf17476d2ca0dd0da753 Mon Sep 17 00:00:00 2001 From: handongxun Date: Mon, 22 Feb 2021 10:23:05 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20unicloud-db=20=E5=A2=9E=E5=8A=A0where?= =?UTF-8?q?=E5=A4=9A=E6=9D=A1=E4=BB=B6js=E6=8B=BC=E6=8E=A5=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/uniCloud/unicloud-db.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/uniCloud/unicloud-db.md b/docs/uniCloud/unicloud-db.md index d76bbd4b1..61ffcc13d 100644 --- a/docs/uniCloud/unicloud-db.md +++ b/docs/uniCloud/unicloud-db.md @@ -168,7 +168,15 @@ where中指定要查询的条件。比如只查询某个字段的值符合一定 } onLoad() { this.sWhere = "id=='" + this.tempstr + "'" - }, + + // 多条件示例 + + // id = this.tempstr 且 create_time > 1613960340000 + // this.sWhere = "id=='" + this.tempstr + "' && create_time > 1613960340000" + + // id = this.tempstr 或 name != null + // this.sWhere = "id=='" + this.tempstr + "' || name != null" + } } ``` -- GitLab