Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Retrieve a LONG VARCHAR, LONG NVARCHAR, or LONG BINARY value using static SQL.
There are no prerequisites for this task.
Declare a host variable of type DECL_LONGVARCHAR, DECL_LONGNVARCHAR, or DECL_LONGBINARY, as appropriate. The array_len member is filled in automatically.
Retrieve the data using FETCH, GET DATA, or EXECUTE INTO. SQL Anywhere sets the following information:
indicator variable Negative if the value is NULL, 0 if there is no truncation, otherwise the positive untruncated length in bytes up to a maximum of 32767.
stored_len The number of bytes stored in the array. Always less than or equal to array_len and untrunc_len.
untrunc_len The number of bytes that would be stored in the array if the value was not truncated. Always greater than or equal to stored_len. If truncation occurs, this value is larger than array_len.
Discuss this page in DocCommentXchange.
|Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0|