Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: PL/SQL stment

Re: PL/SQL stment

From: Konrad BüKo <konrad_at_bueko-webdesign.ch>
Date: Sun, 16 Sep 2001 01:28:19 -0700
Message-ID: <F001.0038FD1A.20010916010516@fatcity.com>

Hi

Make define p_empno in the header of script and undefine in the end then it's work's !

Regards

> Hi lists
> the flwng
>
> DECLARE
> V_sal emp.sal%type;
> BEGIN
> SELECT sal
> INTO v_sal
> FROM emp
> WHERE empno=&&p_empno;
> IF v_sal<2000 then
> UPDATE emp
> SET sal=sal*1.2
> WHERE empno=&p_empno;
> END IF;
> END;
>
> When I run the above, the first time the is asking the empno. But the
> next time I run it is taking the same old value what I previously gave.
>
> I need to find out, where my old value is actually stored. and I need it
> to ask
> again for another value.
>
> where my old value is actually stored?
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Tatireddy, Shrinivas (MED, Keane)
> INET: Shrinivas.Tatireddy_at_med.ge.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: =?Windows-1252?Q?Konrad_B=FCKo?=
  INET: konrad_at_bueko-webdesign.ch

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Sun Sep 16 2001 - 03:28:19 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US