- open account_cursor(type): Open the cursor,
binding the variable in the cursor's query.
- loop ... end loop: Another form of
for loop. Exit must be specified in the loop body.
- fetch account_cursor into acct;:
Get one row from the cursor.
- found: After fetch, found is
true if a row was found, false if the cursor had no more data.
- not found: The usual not operator.
- exit when not found: Exit the loop
if the condition is true.