| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Code review... gurus required!
Hello Steve,
> select nvl(count(*),0) into variable
>
> ...and I'm not sure if it is necessary! Do you need the nvl() function
> in this pl/sql statement, and will its removal speed things up?
>
> I reckon no and yes, but would appreciate the experts view!
for that, You don't need any expert, because count(*) "never returns null", so nvl() is obsolete. The performance advantage will be very small since nvl() is no heavy-weight function. But when You have to do a code review, I would expect Your result is faster and more readable, so You have to strike out any obsolete code.
cu cp Received on Thu Jul 17 2003 - 05:02:16 CDT
![]() |
![]() |