Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

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.



  


 Title: Procedure
 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

  




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 Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gopu Gopi333
  Gitesh Trivedi322
  Vinoth Kumar264
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software