Connor and Chris will both be at AI World from October 12 to October 17 , the premier Oracle conference of 2025. If you're in Vegas, please come say Hi or pop into our sessions
Thanks for the question, Sailesh.
Asked: April 10, 2017 - 3:46 pm UTC
Last updated: April 11, 2017 - 12:44 am UTC
Version: 11
Viewed 1000+ times
set feed on set null <null> var v number; exec :v := 1; with rws as ( select rownum x from dual connect by level <= 5 union all select null x from dual ), vals as ( select * from rws where x = :v or x is null order by x nulls last ) select * from vals where rownum = 1; X 1 1 rows selected exec :v := 6; with rws as ( select rownum x from dual connect by level <= 5 union all select null x from dual ), vals as ( select * from rws where x = :v or x is null order by x nulls last ) select * from vals where rownum = 1; X <null> 1 rows selected
Sailesh Arya, April 10, 2017 - 4:42 pm UTC
Sailesh Arya, April 10, 2017 - 5:05 pm UTC
Share and learn SQL and PL/SQL; free access to the latest version of Oracle Database!
Classes, workouts and quizzes on Oracle Database technologies. Expertise through exercise!