Database Error Messages

Release
toggle
  • 23ai
  • 21c
  • 19c
Updated
Jun 24, 2024

ORA-01422

exact fetch returned more than the requested number of rows requested_rows
  • requested_rows: The number of requested rows.

Cause

The cause is one of the following:

  1. A SELECT statement was executed in the exact fetch mode and returned more rows than requested.
  2. In PL/SQL, a SELECT INTO statement returned more than one row.
  3. In PL/SQL, a DML RETURNING INTO statement returned more than one row.

Action

Choose the action corresponding to the cause as numbered:

  1. Increase the number of rows requested to accommodate the number of rows returned; or omit the exact fetch mode on the fetch call.
  2. In PL/SQL, use a FOR loop to process the rows.
  3. In PL/SQL, use BULK COLLECT to return values into a table.