getValue method: pass values from SQL result sets to variables
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
The getValue method of the SQLCursor class
assigns a single value from an SQL result set (returned by an SQL
query or another stored procedure) to a procedure variable or output
parameter using the following syntax:
Syntax
|
- col_num
- Specifies the desired column of the result set as integer.
getValueretrieves the value in the currently fetched record of the column denoted by col_num.1denotes the first column of the result set,2denotes the second, n denotes the nth. - sql_data_type
- Specifies the corresponding SQL data type.
This method returns a Java object that must be cast to the corresponding SQL
data type. This example shows how the getValue() method
works:
|