未验证 提交 0188b5eb 编写于 作者: O openharmony_ci 提交者: Gitee

!5606 [翻译完成】#I5CFTY

Merge pull request !5606 from Annie_wang/PR5435
...@@ -619,13 +619,7 @@ Sets a **DataAbilityPredicates** object to filter out duplicate records. ...@@ -619,13 +619,7 @@ Sets a **DataAbilityPredicates** object to filter out duplicate records.
**Example** **Example**
```js ```js
dataAbilityPredicates.equalTo("NAME", "Rose").distinct("NAME") dataAbilityPredicates.equalTo("NAME", "Rose").distinct()
let promiseDistinct = rdbStore.query(predicates, ["NAME"])
promiseDistinct.then((resultSet) => {
console.log("distinct")
}).catch((err) => {
expect(null).assertFail();
})
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册