Oracle a Parameter with multi value

Source: Internet
Author: User

Note: Both solutions are limited by the parameter length of oracle internal character functions by 4000.
IN addition, for personal tests, the performance is not as high as the overall running speed of "inserting data into a physical table and then JOIN queries" or "performing IN queries every 1000 IDs.

 

Create or replace procedure tables (v_id_list in varchar2, v_cursor out sys_refcursor) isbegin open v_cursor select * from THE (select cast (in_list (v_id_list) as -- select cast (in_list ('abc, xyz, 012 ') as mytableType) from dual) a; open v_cursor select * from T1 (select cast (in_list (v_id_list) as -- select cast (in_list ('abc, xyz, 012 ') as mytableType) from dual) t2 where t1. ID = t2.COLUMN _ VALUE); end p_getData_byMultiValue; http://asktom.oracle.com/pls/asktom/f? P = 100: 11: 0: P11_QUESTION_ID: 210612357425

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.