Language Reference Guide : System Classes : LongByteObject Class : FetchFromDB Method
 
Share this page          
FetchFromDB Method
The FetchFromDB method retrieves a long byte data from the specified database table into the Value attribute of the LongByteObject.
This method has the following syntax:
integer = LongByteObject.FetchFromDB(query = querystring)
This method has the following parameters:
query
Specifies an SQL update statement where the "into" clause and target variable are not specified (for example, select text_col from long_text where chapter = 'Chapter 1')
This method returns ER_OK if it is successful or another non-zero database error code if it is not. Descriptions of system constant values and their numeric equivalents are listed in Error Codes.