The following table illustrates the cursor sensitivity that is set in response to different ODBC scrollable cursor types.
|ODBC scrollable cursor type||SQL Anywhere cursor|
A MIXED cursor is obtained by setting the cursor type to SQL_CURSOR_KEYSET_DRIVEN, and then specifying the number of rows in the keyset for a keyset-driven cursor using SQL_ATTR_KEYSET_SIZE . If the keyset size is 0 (the default), the cursor is fully keyset-driven. If the keyset size is greater than 0, the cursor is mixed (keyset-driven within the keyset and dynamic outside the keyset). The default keyset size is 0. It is an error if the keyset size is greater than 0 and less than the rowset size (SQL_ATTR_ROW_ARRAY_SIZE).
For information about SQL Anywhere cursors and their behavior, see SQL Anywhere cursors.
For information about how to request a cursor type in ODBC, see Choosing ODBC cursor characteristics.
Discuter à propos de cette page dans DocCommentXchange.
|Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0|