添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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.