Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Examples [Table of Contents] See also

Open Client Client-Library/C Reference Manual

[-] Chapter 3 Routines
[-] ct_compute_info
[-] Usage

Usage

Table 3-10 summarizes ct_compute_info usage.

Summary of ct_compute_info parameters

Value of type

Value of colnum

Information retrieved

*buffer is set to

*outlen is set to

CS_BYLIST_LEN

CS_UNUSED

The number of elements in the bylist array

An integer valu.

sizeof(CS_INT)

CS_COMP_BYLIST

CS_UNUSED

An array containing the bylist that produced this compute row

An array of CS_SMALLINT values

The length of the array, in bytes

CS_COMP_COLID

The column number of the compute column

The select-list column ID of the column from which the compute column derives

An integer value

sizeof(CS_INT)

CS_COMP_ID

CS_UNUSED

The compute ID for the current compute row

An integer value

sizeof(CS_INT)

CS_COMP_OP

The column number of the compute column

The aggregate operator type for the compute column

One of the following symbolic values:

CS_OP_SUM CS_OP_AVG CS_OP_COUNT CS_OP_MIN CS_OP_MAX

sizeof(CS_INT)

The bylist for a compute row

The select-list column ID for a compute column

The compute ID for a compute row

The aggregate operator for a particular compute row column


Examples [Table of Contents] See also