cs.close()

Description:

Close a cursor.

Syntax:  

cs.close()

Note:  

The function clears the file handles and database connections used by cursors and their root cursors. By default, all of them will be closed automatically when fetch operation finishes.

Parameter:

cs

A cursor.

Example:

 

A

 

1

=demo.cursor("select * from SCORES")

Return a cursor of retrieved data.

2

=A1.fetch(10)

Retrieve some records.

3

=A1.close()

Close the cursor.

Related function:

cs.fetch()

db.cursor()