Thank you, Raj, for reply.
Here is the code that I use in pl/sql in oracle 8i. The types of cursortype is a package already created.
I've seen a code that is using table function for the in condition. Our database happens not to be able to handle table function.
Thank you for attention.
Jan
CREATE OR REPLACE PROCEDURE jantest2 (P_BRANCH IN VARCHAR2, L_CURSOR OUT TYPES.CURSORTYPE)
AS
v_branch varchar(200);
begin
v_branch := ''''||replace(P_BRANCH, ',', ''',''')||'''';
OPEN L_CURSOR FOR
SELECT trunc(req_time), map_id, brn_i
from uet_data
where trunc(req_time)>'16-sep-20
and ltrim(brn_i) in (v_branch);
end;
/
Main Topics
Browse All Topics





by: renurajPosted on 2003-09-24 at 02:29:43ID: 9419349
Which tool/utility are you using for this(to construct/execute SQL code)? PL/SQL or java
Please post your code !
Regards,
Raj