Contents|Index|Previous|Next
Updating Data
Applications can update data either by executing SQL statements or by calling SQLSetPos or SQLBulkOperations. UPDATE, DELETE, and INSERT statements act directly on the data source and are usually supported by
drivers. Searched update and delete statements contain a specification of the rows
to change. Positioned update and delete statements and SQLSetPos act on the data source through a cursor and are less widely supported.
Whether cursors can detect changes made to the result set with the methods
described in this chapter depends on the type of the cursor and how it is
implemented. Forward-only cursors do not revisit rows and therefore will not detect any
changes. For information about whether scrollable cursors can detect changes,
see
“Scrollable Cursors” in Chapter 11, “Retrieving Results (Advanced).”