Cursors provide a mechanism by which a database client iterates over the records in a database. Using cursors, the client can get, put, and delete database records. Database programmers use cursors for processing individual rows returned by the database system for a query. Working with cursor: Syntax: Declare a cursor
DECLARE cursor_name CURSOR FOR SELECT ... FROM ...
Open a cursor
OPEN cursor_name
Fetch Cursor
FETCH cursor_name INTO ...
Close Cursor
CLOSE cursor_name
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Working with cursor:
Syntax:
Declare a cursor