Topic: SQL*Plus and PL/SQL >> Procedure
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| sunil |
Posted: Jun 07, 2007 07:32:23 AM |
Total Post: 20
Joined: Nov, 2006
|
Hi all,
I want to create a procedure which accepts input parameter as like this
1234,5267,6853,.....
to be more specific
select * from index_m where i_id in (1234,5267,6853,.....)
i_id's should be passed through Procedure.
I have tried using Index By table and ref Cursor it did not work.
Pls Help.
Thanks in advance
Sunil K. |
|
|
KS |
| Posted: Jun 14, 2007 11:35:32 AM | |
|
Total Post: 65
Joined: Nov, 2006
|
Hi,
have you tried assigning those valus to a variable.
try the following,
Example :
SQL> set serveroutput on
SQL> declare
2 s varchar2(20);
3 begin
4 s :='||&r||';
5 dbms_output.put_line(s);
6 end;
7 /
Enter value for r: 23,23,34
old 4: s :='||&r||';
new 4: s :='||23,23,34||';
||23,23,34||
PL/SQL procedure successfully completed.
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Gopu Gopi | 333 |
| Gitesh Trivedi | 322 |
| Vinoth Kumar | 264 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|