Declaration define external integer function OCI_odefin
( value OCI_Handle_type cursor,
value integer pos,
value OCI_Array_type buf,
value integer bufl,
value integer ftype,
value OCI_Array_type indp,
value OCI_Array_type rlen,
value OCI_Array_type rcode
)
Purpose
This function defines an output variable for a specified select-list item of an SQL query.
Input arguments:
- cursor -- Cursor data area descriptor.
- pos -- The index position of the data column in the row. The first column is position one.
- buf -- Buffer in which to return data.
- bufl -- Length of a single element in the buf array.
- ftype -- The external datatype of the program variable. The following values are allowed:
- SQLT_CHR -- (ORANET TYPE) character string
- SQLT_NUM -- (ORANET TYPE) oracle numeric
- SQLT_INT -- (ORANET TYPE) integer
- SQLT_FLT -- (ORANET TYPE) floating point number
- SQLT_STR -- zero terminated string
- SQLT_VNU -- NUM with preceding length byte
- SQLT_PDN -- (ORANET TYPE) packed decimal numeric
- SQLT_LNG -- long
- SQLT_VCS -- variable character string
- SQLT_NON -- null/empty PCC descriptor entry
- SQLT_RID -- rowid
- SQLT_DAT -- date in Oracle format
- SQLT_VBI -- binary in VCS format
- SQLT_BIN -- binary data (DTYBIN)
- SQLT_LBI -- long binary
- SQLT_UIN -- unsigned integer
- SQLT_SLS -- display sign leading separate
- SQLT_LVC -- longer longs (char)
- SQLT_LVB -- longer long binary
- SQLT_AFC -- ANSI fixed character
- SQLT_AVC -- ANSI variable character
- SQLT_CUR -- cursor type
- SQLT_LAB -- label type
- SQLT_OSL -- oslabel type
- indp -- An array of indicator variables or OCI_NULL_ARRAY if not required.
- rlen -- An array of the lengths of the returned data or OCI_NULL_ARRAY if not required.
- rcode -- Return code of the Oracle error number or OCI_NULL_ARRAY if not required.
Examples:
set RetCode to OCI_odefin
( Cursor,
1,
Employee,
100,
SQLT_STR,
OCI_NULL_ARRAY,
OCI_NULL_ARRAY,
OCI_NULL_ARRAY
)
OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:27:39 pm
If you have any comments about this section of the documentation, please use this form.
Copyright © Stilo International plc, 1988-2008.