未验证 提交 9c224f2d 编写于 作者: O openharmony_ci 提交者: Gitee

!9817 【轻量级 PR】:update zh-cn/application-dev/reference/apis/js-apis-data-DataShareResultSet.md.

Merge pull request !9817 from lihuihui/N/A
...@@ -195,7 +195,7 @@ goToRow(position: number): boolean ...@@ -195,7 +195,7 @@ goToRow(position: number): boolean
**示例:** **示例:**
```ts ```ts
let goToRowNum = 2 let goToRowNum = 2;
let isGoToRow = resultSet.goToRow(goToRowNum); let isGoToRow = resultSet.goToRow(goToRowNum);
console.info('resultSet.goToRow: ' + isGoToRow); console.info('resultSet.goToRow: ' + isGoToRow);
``` ```
...@@ -223,7 +223,7 @@ getBlob(columnIndex: number): Uint8Array ...@@ -223,7 +223,7 @@ getBlob(columnIndex: number): Uint8Array
**示例:** **示例:**
```ts ```ts
let columnIndex = 1 let columnIndex = 1;
let goToFirstRow = resultSet.goToFirstRow(); let goToFirstRow = resultSet.goToFirstRow();
let getBlob = resultSet.getBlob(columnIndex); let getBlob = resultSet.getBlob(columnIndex);
console.info('resultSet.getBlob: ' + getBlob); console.info('resultSet.getBlob: ' + getBlob);
...@@ -231,7 +231,7 @@ console.info('resultSet.getBlob: ' + getBlob); ...@@ -231,7 +231,7 @@ console.info('resultSet.getBlob: ' + getBlob);
### getString ### getString
getString(columnIndex: number): *string* getString(columnIndex: number): string
以字符串形式获取当前行中指定列的值。 以字符串形式获取当前行中指定列的值。
...@@ -252,7 +252,7 @@ getString(columnIndex: number): *string* ...@@ -252,7 +252,7 @@ getString(columnIndex: number): *string*
**示例:** **示例:**
```ts ```ts
let columnIndex = 1 let columnIndex = 1;
let goToFirstRow = resultSet.goToFirstRow(); let goToFirstRow = resultSet.goToFirstRow();
let getString = resultSet.getString(columnIndex); let getString = resultSet.getString(columnIndex);
console.info('resultSet.getString: ' + getString); console.info('resultSet.getString: ' + getString);
...@@ -281,7 +281,7 @@ getLong(columnIndex: number): number ...@@ -281,7 +281,7 @@ getLong(columnIndex: number): number
**示例:** **示例:**
```ts ```ts
let columnIndex = 1 let columnIndex = 1;
let goToFirstRow = resultSet.goToFirstRow(); let goToFirstRow = resultSet.goToFirstRow();
let getLong = resultSet.getLong(columnIndex); let getLong = resultSet.getLong(columnIndex);
console.info('resultSet.getLong: ' + getLong); console.info('resultSet.getLong: ' + getLong);
...@@ -310,7 +310,7 @@ getDouble(columnIndex: number): number ...@@ -310,7 +310,7 @@ getDouble(columnIndex: number): number
**示例:** **示例:**
```ts ```ts
let columnIndex = 1 let columnIndex = 1;
let goToFirstRow = resultSet.goToFirstRow(); let goToFirstRow = resultSet.goToFirstRow();
let getDouble = resultSet.getDouble(columnIndex); let getDouble = resultSet.getDouble(columnIndex);
console.info('resultSet.getDouble: ' + getDouble); console.info('resultSet.getDouble: ' + getDouble);
...@@ -353,14 +353,14 @@ getColumnIndex(columnName: string): number ...@@ -353,14 +353,14 @@ getColumnIndex(columnName: string): number
**示例:** **示例:**
```ts ```ts
let ColumnName = "name" let ColumnName = "name";
let getColumnIndex = resultSet.getColumnIndex(ColumnName) let getColumnIndex = resultSet.getColumnIndex(ColumnName);
console.info('resultSet.getColumnIndex: ' + getColumnIndex); console.info('resultSet.getColumnIndex: ' + getColumnIndex);
``` ```
### getColumnName ### getColumnName
getColumnName(columnIndex: number): *string* getColumnName(columnIndex: number): string
根据指定的列索引获取列名。 根据指定的列索引获取列名。
...@@ -381,8 +381,8 @@ getColumnName(columnIndex: number): *string* ...@@ -381,8 +381,8 @@ getColumnName(columnIndex: number): *string*
**示例:** **示例:**
```ts ```ts
let columnIndex = 1 let columnIndex = 1;
let getColumnName = resultSet.getColumnName(columnIndex) let getColumnName = resultSet.getColumnName(columnIndex);
console.info('resultSet.getColumnName: ' + getColumnName); console.info('resultSet.getColumnName: ' + getColumnName);
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册