Re: PL/SQL bug?
From: Eric Byrnes <LNUSMCD.NZJDDV_at_eds.com>
Date: 1996/10/23
Message-ID: <326E76FF.21F8_at_eds.com>#1/1
Date: 1996/10/23
Message-ID: <326E76FF.21F8_at_eds.com>#1/1
Alex Ma wrote:
>
> The following sample procedure takes in an input parameter P_NAME
> and inside the procedure I use the P_NAME in the SELECT statement:
>
> procedure XXX(P_NAME in varchar2) is
> l_field number(10);
> begin
> SELECT field
> INTO l_field
> FROM table
> WHERE table.NAME = P_NAME
> end;
>
> The above code would compile but returns wrong result. In fact it will
> raise an exception of no_data_found.
Eric Received on Wed Oct 23 1996 - 00:00:00 CEST