Search notes:

Oracle SQL Plan operation INLIST ITERATOR

The INLIST ITERATOR has exactly one child row source. I have seen the following child row sources:
drop   table tq84_A;

create table tq84_A (
   nm   number,
   tx   varchar2(200)
);

insert into tq84_A
select
   mod(level * 773, 1009),
   lpad('x', 200, 'x')
from 
   dual connect by level < 1009;

create unique index tq84_A_ix on tq84_A(nm);

begin
   dbms_stats.gather_table_stats(user, 'tq84_A');
end;
/

explain plan for
select
   tx
from
   tq84_A
where
   nm in (111, 222, 333, 444);

select * from table(dbms_xplan.display(format => 'basic +rows'));
--
-- ----------------------------------------------------------
-- | Id  | Operation                    | Name      | Rows  |
-- ----------------------------------------------------------
-- |   0 | SELECT STATEMENT             |           |     4 |
-- |   1 |  INLIST ITERATOR             |           |       |
-- |   2 |   TABLE ACCESS BY INDEX ROWID| TQ84_A    |     4 |
-- |   3 |    INDEX UNIQUE SCAN         | TQ84_A_IX |     4 |
-- ----------------------------------------------------------
Note: the cardinality («Rows») of the INDEX UNIQUE SCAN is 4, not 1, because this operation is expected to be called 4 times.

See also

PARTITION LIST ITERATOR,
PARTITION RANGE INLIST.
SQL statement execution plan operations

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758199878, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL/statement/execution/plan/operations/inlist-iterator/index(93): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78