Hi all,
Oracle 11g R2.
How do you handle null IN param in SQL WHERE clause? My suggestions:
1] select value into variable from table t where (in_param is null or t.column = in_param);
2] select value into variable from table t where column = nvl(in_param, column);
what is better? Other choices? Impact on indexes etc.?
Thanks
Rob