What is a cursor in COBOL when dealing with database operations?

  • A control structure used to iterate over database records
  • A database object used to store query results
  • A mechanism to establish database connections
  • An index used to optimize database queries
In COBOL, a cursor is a control structure used to iterate over the result set of a SQL query. It enables sequential access to individual rows returned by the query, allowing COBOL programs to process database records one at a time. Cursors are essential for handling database operations involving multiple rows of data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *