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

Home -> Community -> Usenet -> c.d.o.server -> Re: local variable/column name conflict?

Re: local variable/column name conflict?

From: Arjan van Bentem <avbentem_at_DONT-YOU-DAREdds.nl>
Date: Wed, 19 May 1999 23:51:34 +0200
Message-ID: <7hvcku$2o2$1@weber.a2000.nl>


Brenda A Graham wrote
> DECLARE
> code_name varchar2(5) := 'ZZZ%';
> kount integer;
> BEGIN
> SELECT count(*) into kount
> FROM test_table
> WHERE code_name like code_name;
> END;
If this is part of a stored procedure, and the procedure is called my_proc, then use:

    SELECT count(*) into kount
    FROM test_table
    WHERE code_name like my_proc.code_name;

Arjan. Received on Wed May 19 1999 - 16:51:34 CDT

Original text of this message

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