Search notes:

Oracle SQL Plan operation UNION ALL (RECURSIVE WITH) BREADTH FIRST

explain plan for
with rec(n) as (
   select 1 from dual
      union all
   select n+1 from rec where n<=1000
)
select * from rec;

select * from table(dbms_xplan.display(format=>'basic +predicate'));
-- ----------------------------------------------------------
-- | Id  | Operation                                 | Name |
-- ----------------------------------------------------------
-- |   0 | SELECT STATEMENT                          |      |
-- |   1 |  VIEW                                     |      |
-- |   2 |   UNION ALL (RECURSIVE WITH) BREADTH FIRST|      |
-- |   3 |    FAST DUAL                              |      |
-- |*  4 |    RECURSIVE WITH PUMP                    |      |
-- ----------------------------------------------------------
--  
-- Predicate Information (identified by operation id):
-- ---------------------------------------------------
--  
--    4 - filter("N"<=1000)

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...', 1758199276, '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/union-all/recursive-with/breadth-first/index(57): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78