@@ -1020,7 +1020,7 @@ let promise = rdbStore.insert("EMPLOYEE", valueBucket)
promise.then(async(ret)=>{
console.log("Insert first done: "+ret)
}).catch((err)=>{
console.log("Insert failed, err: "+err)
console.log("Failed to insert data, err: "+err)
})
```
...
...
@@ -1038,7 +1038,7 @@ Updates data in the database based on the specified RdbPredicates object. This A
| -------- | -------- | -------- | -------- |
| values | [ValuesBucket](#valuesbucket) | Yes| Rows of data to be updated in the database. The key-value pair is associated with the column name in the target table.|
| predicates | [RdbPredicates](#rdbpredicates) | Yes| Update conditions specified by the **RdbPredicates** object.|
| callback | AsyncCallback<number> | Yes| Callback used to return the number of rows updated.|
| callback | AsyncCallback<number> | Yes| Callback used to return the number of rows updated.|
**Example**
```js
...
...
@@ -1052,7 +1052,7 @@ let predicates = new data_rdb.RdbPredicates("EMPLOYEE")
@@ -1093,7 +1093,7 @@ let promise = rdbStore.update(valueBucket, predicates)
promise.then(async(ret)=>{
console.log("Updated row count: "+ret)
}).catch((err)=>{
console.info("Updated failed, err: "+err)
console.info("Failed to update data, err: "+err)
})
```
...
...
@@ -1110,7 +1110,7 @@ Updates data in the database based on the specified **DataSharePredicates** obje
| table | string | Yes| Name of the target table.|
| values | [ValuesBucket](#valuesbucket) | Yes| Rows of data to be updated in the database. The key-value pair is associated with the column name in the target table.|
| predicates | [DataSharePredicates](js-apis-data-DataSharePredicates.md#datasharepredicates)| Yes| Update conditions specified by the **DataSharePredicates** object.|
| callback | AsyncCallback<number> | Yes| Callback used to return the number of rows updated.|
| callback | AsyncCallback<number> | Yes| Callback used to return the number of rows updated.|
**Example**
```js
...
...
@@ -1125,7 +1125,7 @@ let predicates = new dataSharePredicates.DataSharePredicates()
@@ -1494,7 +1494,7 @@ Runs the SQL statement that contains the specified parameters but does not retur
constSQL_CREATE_TABLE="CREATE TABLE IF NOT EXISTS EMPLOYEE (ID INTEGER PRIMARY KEY AUTOINCREMENT, NAME TEXT NOT NULL, AGE INTEGER, SALARY REAL, CODES BLOB)"