Search notes:

Oracle SQL Plan operation: MATCH RECOGNIZE

create table tq84_test_data (id integer, letter char(1));
insert into tq84_test_data
select
   level,
   chr(64+level)
from
   dual connect by level < 10;
explain plan for
select
   *
from
   tq84_test_data
match_recognize (
   order by id
   measures
      first(id    ) as id,
      first(letter) as letter
   pattern(ptrn*)
   define
      ptrn as 1=1
);

select * from dbms_xplan.display(format=>'basic');
--
-- -------------------------------------------------------------------------------
-- | Id  | Operation                                            | Name           |
-- -------------------------------------------------------------------------------
-- |   0 | SELECT STATEMENT                                     |                |
-- |   1 |  VIEW                                                |                |
-- |   2 |   MATCH RECOGNIZE SORT DETERMINISTIC FINITE AUTOMATON|                |
-- |   3 |    TABLE ACCESS FULL                                 | TQ84_TEST_DATA |
-- -------------------------------------------------------------------------------

See also

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...', 1758199812, '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/match-recognize/index(68): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78