Reputation: 3581
How can I make a sql SELECT
query run forever in oracle 10g? It should go to completion and should be running forever until stopped by killing the session.
Upvotes: 0
Views: 746
Reputation: 79165
SELECT dummy
FROM dual
CONNECT BY level > 0
If you want it to “fork” a bit more:
WITH x AS ( SELECT column_value y FROM TABLE(sys.dbms_debug_vc2coll('a','b','c','d','e','f'))
)
SELECT y FROM x CONNECT BY level > 0;
Upvotes: 1