type Rows
The following table describes type Rows.
Method |
Description |
Return Value |
(rs *Rows)Close() |
Closes Rows to stop the iteration of the data set. |
error |
(rs *Rows)ColumnTypes() |
Returns column information. |
[]*ColumnType and error |
(rs *Rows)Columns() |
Returns the name of each column. |
[]string and error |
(rs *Rows)Err() |
Returns any errors that occur during iteration. |
error |
(rs *Rows)Next() |
Prepares the next data row to be read with the Scan method. If there is an additional result set, true is returned. Otherwise, false is returned. |
boolean |
(rs *Rows)Scan(dest ...interface{}) |
Copies the columns of the current iterated row of data to the value specified by dest. |
error |
(rs *Rows)NextResultSet() |
Specifies whether there is an additional result set. |
boolean |
Parameters
Parameter |
Description |
dest |
Queries the value to which the column needs to be copied. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot