Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Optional (ignored) parameters in stored procedures (PL/SQL)? How to?
I think this gives the same result as the COALESCE example.
If the UMBS_OBJ_STT column contains NULL values those rows are not returned. (NULL = NULL returns false) And we should receive all rows when the state parameter is NULL.
"Mark C. Stock" <mcstockX_at_Xenquery .com> wrote in message news:<qomdnesa_eAWQWOi4p2dnA_at_comcast.com>...
> OPEN resultCursor FOR
> SELECT UMET_ID
> FROM T_UM_BASE
> WHERE UMBS_MEMB = memberId
> AND UMBS_OBJ_STT = nvl(state,UMBS_OBJ_STT)
>
> -- mcs
Received on Sat Jan 10 2004 - 07:39:56 CST