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, Niraj.
Asked: December 09, 2020 - 6:56 pm UTC
Last updated: December 11, 2020 - 5:39 pm UTC
Version: Oracle18c
Viewed 1000+ times
my sql :- select * from scott.emp where ename in (&1) &1 possible values :- 1. 'JOHN' 2. 'JOHN','ROCKY' 3. Null ( NOthing to enter on user input)
create table t ( c1 int ); insert into t values ( 1 ); set define on define v old:select * from t where c1 in ( &v ) or &v is null new:select * from t where c1 in ( null ) or null is null C1 1 select * from t where c1 in ( &v ) or &v is null;
The Oracle documentation contains a complete SQL reference.