Search notes:

Oracle SQL Plan operation INDEX UNIQUE SCAN

The index unique scan plan operation returns 0 or 1 ROWIDs from a unique-index.
In most cases, this plan operation has no child sources. The four rare row sources I have encountered so far include:
Among this operation's parent operator are
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_uq on tq84_A(nm);

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

explain plan for
select
   tx
from
   tq84_A
where
   nm = 500;

select * from table(dbms_xplan.display(format=>'basic'));
--
-- -------------------------------------------------
-- | Id  | Operation                   | Name      |
-- -------------------------------------------------
-- |   0 | SELECT STATEMENT            |           |
-- |   1 |  TABLE ACCESS BY INDEX ROWID| TQ84_A    |
-- |   2 |   INDEX UNIQUE SCAN         | TQ84_A_UQ |
-- -------------------------------------------------

drop table tq84_A;

See also

Compare this operation with INDEX RANGE SCAN which returns 0, 1 or more ROWIDs from a non-unique-index.
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...', 1758199315, '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/index_/unique-scan/index(98): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78