Hi all,
This is probably a simple problem for most of you.. Let me know if you
have any pointers for me. I am new to DB2.
In my stored procedure I want to select records that match a range of
values.
================================================== =======
create PROCEDURE DB2. sp_gettotry_logs (
IN myid
CHARACTER(36)
)
RESULT SETS 1
LANGUAGE SQL
BEGIN
DECLARE c1 CURSOR WITH RETURN FOR
select * from db2.playlogs_ where playerid_ in
( myid ) ;
OPEN c1;
END
================================================== =========
How do I call this procedure and pass a range of values ?
I've tried:
call db2.sp_gettotry_logs( '19','01')
This doesn't work because the function is expecting only one parameter
.... but I want to get record results where playerid is either '19' or
'01'.
Thanks in advance.
-Anil