Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3997690
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:25:57+00:00 2026-05-20T07:25:57+00:00

I have multi-select drop down list where in user can select multiple options, now

  • 0

I have multi-select drop down list where in user can select multiple options, now how can I pass this multi-select options to select query.

Code

select number from table(get_number(('('1','2','3','4','5')','7','8')));

where 1, 2, 3, 4 and 5 are the multi-select options selected from multiselect dropdown box. Now in get_number function I am passing count_number, role_number and test_id. Count_number represents the multi-select options which user select. So my question is how can I consume multi-select values which user entered in my get_number function, not sure if possible but do I need to define count_number as array in get_number function ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:25:58+00:00Added an answer on May 20, 2026 at 7:25 am

    it is not clear what you’re trying to achieve. Below is an example of a function that uses arrays as parameter and output.

    SQL> CREATE OR REPLACE TYPE tab_number AS TABLE OF NUMBER;
      2  /
    
    Type created
    
    SQL> CREATE OR REPLACE FUNCTION get_number (p_array tab_number)
      2     RETURN tab_number
      3  IS
      4     l_result tab_number := tab_number();
      5  BEGIN
      6     FOR i IN 1..p_array.count LOOP
      7        /* do something with array */
      8        l_result.extend;
      9        l_result(i) := 2 * p_array(i);
     10     END LOOP;
     11     RETURN l_result;
     12  END;
     13  /
    
    Function created
    
    SQL> SELECT * FROM TABLE(get_number(tab_number(1,2,3,4,5)));
    
    COLUMN_VALUE
    ------------
               2
               4
               6
               8
              10
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a multi-table query, similar to this (simplified version) SELECT columns, count(table2.rev_id) As
I have a multi select dropdown list. I can get the array of selected
I have a multi-select list-box with 100+ <option> Now I have 7 or 8
I have a multi select list in my View to send to controller a
I have a multi-user ASP.NET app running against SQL Server and want to have
I have a multi-threaded Windows application that occasionally deadlocks. Inevitably this happens on a
I have a multi-user eclipse (3.4) installation with a shared master configuration area. Users
We currently have a form with the standard multi-select functionality of here are the
I have a TStringGrid where the selected row (max 1, no multi-select) should always
Modern browsers have multi-tab interface, but JavaScript function window.showModalDialog() creates a modal dialog that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.