未验证 提交 13b9261d 编写于 作者: O openharmony_ci 提交者: Gitee

!10664 [翻译完成】#I5SMS4 (仅涉及代码修改)

Merge pull request !10664 from Annie_wang/PR9817
...@@ -195,7 +195,7 @@ Moves to the specified row in the result set. ...@@ -195,7 +195,7 @@ Moves to the specified row in the result set.
**Example** **Example**
```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 @@ Obtains the value in the form of a byte array based on the specified column and ...@@ -223,7 +223,7 @@ Obtains the value in the form of a byte array based on the specified column and
**Example** **Example**
```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
Obtains the value in the form of a string based on the specified column and the current row. Obtains the value in the form of a string based on the specified column and the current row.
...@@ -252,7 +252,7 @@ Obtains the value in the form of a string based on the specified column and the ...@@ -252,7 +252,7 @@ Obtains the value in the form of a string based on the specified column and the
**Example** **Example**
```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 @@ Obtains the value in the form of a long integer based on the specified column an ...@@ -281,7 +281,7 @@ Obtains the value in the form of a long integer based on the specified column an
**Example** **Example**
```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 @@ Obtains the value in the form of a double-precision floating-point number based ...@@ -310,7 +310,7 @@ Obtains the value in the form of a double-precision floating-point number based
**Example** **Example**
```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 @@ Obtains the column index based on the column name. ...@@ -353,14 +353,14 @@ Obtains the column index based on the column name.
**Example** **Example**
```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
Obtains the column name based on the column index. Obtains the column name based on the column index.
...@@ -381,8 +381,8 @@ Obtains the column name based on the column index. ...@@ -381,8 +381,8 @@ Obtains the column name based on the column index.
**Example** **Example**
```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.
先完成此消息的编辑!
想要评论请 注册