A cursor is a symbolic name that is linked with a SQL statement. Declaring a cursor establishes this link. The SQL statement can be one of the following:
A SQL select statement
A Transact-SQL execute statement
A dynamic SQL prepare statement
The SQL statement associated with a cursor is called the body of the cursor. When a client opens a cursor, it executes the body of the cursor, which in turn generates a result set. The Open ServerConnect application is responsible for detecting cursor requests and passing cursor results back to the client.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |