Passing array as parameter to stored procedure in Oracle
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Passing array as parameter to stored procedure in Oracle

  1. #1
    Join Date
    Sep 2011
    Posts
    1

    Passing array as parameter to stored procedure in Oracle

    Hi,

    I need to pass array parameter to stored procedure. Can anyone tell me how can I do that.

    Eg: User will provide list of Identifiers seperated with comma as one of the parameter to my procedure say( 0719,8323,5769,.......,5700)

    I have to enddate/delete the list of identifiers from DB.
    eg: Update ft_t_isid set end_tms = sysdate where iss_id ='0719'
    Update ft_t_isid set end_tms = sysdate where iss_id ='8323'
    Update ft_t_isid set end_tms = sysdate where iss_id ='5769'
    Update ft_t_isid set end_tms = sysdate where iss_id ='5700'

    How can I acheive the above result.

    Thanks,
    Barkha

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,554
    Please check DBMS_UTILITY.COMMA_TO_TABLE - this allows you to parse comma delimited list of parameters into a pl/sql table.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width