Search notes:

Oracle SQL Plan operation: TABLE ACCESS SAMPLE

create table tq84_smp as
select
   level id,
   dbms_random.string('a', 10) txt
from
   dual connect by level <= 1000;

explain plan for
select
   *
from
  tq84_smp sample(1);

select * from dbms_xplan.display(format=>'basic');
--
-- ----------------------------------------
-- | Id  | Operation           | Name     |
-- ----------------------------------------
-- |   0 | SELECT STATEMENT    |          |
-- |   1 |  TABLE ACCESS SAMPLE| TQ84_SMP |
-- ----------------------------------------

drop table tq84_smp;

See also

SAMPLE select statement.
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...', 1740452949, '3.21.104.171', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL/statement/execution/plan/operations/table-access/sample(60): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78