Cursor overview

A cursor is a symbolic name that an application attaches to a select statement. The statement can be executed and its result set manipulated by performing operations on the cursor.

Cursors support the following operations:

In an Adaptive Server client application, cursors can either be created and manipulated with language commands or with ct_cursor commands. Cursors created using Transact-SQL language commands are called language cursors. Cursors created with ct_cursor commands are called Client-Library cursors. Table 7-1 compares the two types of cursors.