Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: PL/SQL : Alternative way of doing if any
Billy wrote:
> Noel wrote:
>
>
>>Baka's code will raise exception when, from some reason, cursor fail to >>open. No mysterious runtime errors occurs, there will be %NOTFOUND >>pseudocolumn of cursor set to TRUE if cursor fetches no records.
It does, in 10g - the OP did not reveal his version, though.
What happens
> when the buffer gets full? And there is no ways that 4 lines of code
> for an getting a result into a variable is more sensible in this case
> than a single line.
>
>
>>Your example might raise three kind of exception, no_data_found, >>too_many_rows and other exception, and you'll need to put some code for >>all of those.
>
> Do you actually know what exception handling is all about and what the
> differences are between dealing with exceptions via handlers and
> dealing with runtime errors using in-line IF block coding?
>
>
>>I would stick by Baka's solution.
-- Regards, Frank van Bortel Top-posting is one way to shut me up...Received on Fri Aug 19 2005 - 07:12:08 CDT
![]() |
![]() |