Using Array Binding with Cursors

The DB-Library routine dbcursorbind binds a cursor result column to an array of program variables. The array has a number of rows equal to the size of the fetch buffer specified in the application’s call to dbcursoropen.

The Client-Library routine ct_bind can bind a cursor result column either to a single program variable or to an array of program variables. The value of datafmtcount determines the size of the array.

For both DB-Library and Client-Library, the size of the array must be the same for all columns in the result set.

The following considerations apply when using array binding with updatable Client-Library cursors: