In Oracle 10g, what is the max number of values we can pass to  'IN' Clause

Hi,
In my SQL query i have a scenario like, i have to pass the values to 'IN' Clause dynamically from other application. I want to know what is the the max number of values i can pass to 'IN' Clause.
i have searched in many pages i seeing answers like 'may be 1000' , 'not sure'....
Could any one tell me the exact limit of IN Clause in 10g.
Thanks in Advance.
Chandran

Hi, Chandran,
Chandran M wrote:
In my SQL query i have a scenario like, i have to pass the values to 'IN' Clause dynamically from other application. I want to know what is the the max number of values i can pass to 'IN' Clause.
i have searched in many pages i seeing answers like 'may be 1000' , 'not sure'....Don't overlook [Dont want to know|http://forums.oracle.com/forums/thread.jspa?messageID=2683385&#2683385]. This may explain why people are reluctant to give a straight answer.
Could any one tell me the exact limit of IN Clause in 10g.1000 items such as IN (1, 2, 3, ..., 1000)
No limit on the number of sets: IN ((1), (2), (3), ...) *<=== NOT QUITE!* See below
No limit in sub-queries: IN (SELECT ...)
Edited by: Frank Kulash on Jun 3, 2009 9:43 AM
The limit of 1000 applies to sets of single items: (x) IN ((1), (2), (3), ...)
There is no limit if the sets contain two or more items: (x, 0) IN ((1,0), (2,0), (3,0), ...)
Thanks to Michaels for pointing this out.
Edited by: Frank Kulash on Jun 3, 2009 10:22 AM
Fixed link

Similar Messages

  • IN cluse: what is the maximum number of values that can use in "in" caluse?

    Hi All,
    Please see the following querry
    select * from <table> where <columnname> in (value1,value2,....);
    My question is what is the maximum number of values we can put inside the bracket in the querry?
    I mean what is the maximum number of values that can use in "in" caluse.
    Best Reagrds
    Marcelo

    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/expressions014.htm
    A comma-delimited list of expressions can contain no more than 1000 expressions. A comma-delimited list of sets of expressions can contain any number of sets, but each set can contain no more than 1000 expressions.
    The following are some valid expression lists in conditions:
    (10, 20, 40)
    ('SCOTT', 'BLAKE', 'TAYLOR')
    ( ('Guy', 'Himuro', 'GHIMURO'),('Karen', 'Colmenares', 'KCOLMENA') )

  • In C4: What determines the max number of slide one can successfully publish?

    Using C4.
    I am required by policy to use an original PowerPoint file. The total number of slide equals 72 (file size 38,201 KB when completed). The internal customer wants a "kicky" presentation based on her slides, so I must use some of the Captivate tools (e.g. zoom area, highlight box -- about the limit of my skills). And there must be spoken narration, not the text to speech feature. Total time for the 72 slides is 22.5 minutes when all is done. When published the narration is good, but the "kicky" part fails. Specifically some highlight boxes do not appear on many slides.
    I deleted the table-of-contents feature. The most unusual tools that I'm using are the certificate widget, and a page turning widget.
    I tried breaking the presentation into two parts. Part 1 was 58 slides and I experienced the same behavior. I've not tried part two yet.
    In the past, I practiced, on my computer, with the aggregator. Is this the best route? We have no experience hosting an aggregator project on our server. Are there any special concerns about doing so? (I'm not the person who does this. He is out of the office at this time). Would daisy-chaining be a better route? (if so, what is the best source for instruction to do this?)

    Again, I did not see the elephant in the room. I neglected to notice a default setting. Once corrected, everything works. My bad.
    But, I would still like to know what determines the maximum number of slides on can successfully publish without Aggregator or daisy-chaining.

  • What is the max number of contacts that can be added to an email?

    I'm sometimes sent emails with 1-200 contacts added in. If I try to 'respond to all' iMail just won't send the email back.
    What is the maximum number of contacts that iMail can cope with? Is there a workaround for a larger number?
    Many thanks
    Steve

    I'm not sure the point of it as I use a BT push pop3 account?
    The point is that these kinds of restrictions are set by your email provider, i.e., Comcast, GMail, etc., not by the Mail application client.
    If BT means British Telecom, ask them.

  • What is the max number of hyperlinks supported in a PDF docment?

    What is the max number of hyperlinks supported in a PDF docment?
    How do I find out how many hyperlinks there are in a PDF document?

    I don't think there's a limit to the number of links you can add to a file...
    This code (taken from the reference files) will report the number of links in your file:
    var numLinks=0;
    for ( var p = 0; p < this.numPages; p++)
    var b = this.getPageBox("Crop", p);
    var l = this.getLinks(p, b);
    console.println("Number of Links on page " + p +" is " + l.length);
    numLinks += l.length;
    console.println("Number of Links in Document is " + numLinks);

  • What's the max number of columns a table can have on 32 bit OS & 64 bit OS

    What is the max number of columns a table can have on 32 bit OS & 64 bit OS ?
    Edited by: sameer naik on 02-Jul-2010 02:11

    For TimesTen 7.0 and 11.2.1 releases the limit on the number of columns per table is 1000 for both 32 and 64 bit TimesTen. This can be found in the documentation under System Limits.
    Regards,
    Chris

  • What is the Max Number of Total Work Process that we can Have on  One C.I

    Hi,
    What is the Max Number of Total Work Process that we can have on a Single C.I
    Is there any Limit that We can only have Perticular Number of Total work process ?
    Or it is just Unlimited number of total work process
    Thanks & Regards
    Dan.

    from the system throughput point of view a rule of a thumb is:
    1 up to 4 sometimes 5 workprocesses per CPU.
    (one is used in Benchmarks where you have a very small number of transactions running with a small amount of database accesses)
    you can easily find it out:
    configure 4 WPs per CPU. If you have a number of WP's consuming nearly no CPU time you can reduce the number of WPs.
    regards
    Peter

  • What is the max number of WLANs in a WLC?

    We are going to deploy centralized wireless with WiSM WLCs in our datacenter controlling LAP for all our locations (around 600 locations). We would need to create a common WLAN for all locations but also, we need to create unique WLANs at each location so that we can control access to user groups (users from location A cannot log on to unique WLAN at location B).
    My question is: what is the maximum number of WLANs I can create in a WLC?
    Even though controllers will have 150 AP (maximum) we want to implement n + 1 redundancy, thus, back up controllers would need all 600+ WLANs configured. Is this possible?
    Is there a better way to accomplish this?
    Thanks,
    E

    Hi George, Thanks for your quick response.
    1)     All our locations are in the same metropolitan area and are connected through 1G fiber links. (School Board)
    2)     Some locations are smaller than others, so the number of APs will vary. I guess we will have 4 to 30 APs per site.
    I read documentation about HREAP and did some tests in our lab. At the beginning it looked like this was the way to go for us but we found out that to enable roaming on HREAP we needed to create groups and the number of HREAP groups per controller is very low (I think it was 20), this made us discard the idea.
    Any other suggestion?

  • What is the maximum number of columns that can be displayed by sqlplus?

    Hello,
    Questions:
    Is there a limit on what sqlplus can display?
    What is the maximum number of columns that can be displayed by sqlplus?
    I cannot find anything on this in my search. I checked the limits page:
    http://docs.oracle.com/cd/B19306_01/server.102/b14357/apa.htm#sthref3658
    http://docs.oracle.com/cd/E11882_01/server.112/e16604/apa.htm#i635278
    It does not specify any column limits; however, I'm thinking it is tied to LINESIZE which is system dependent.
    Please confirm if true.
    Thanks!

    Received answer directly from SQL*Plus Development:
    "sqlplus does not have a limit on the number of columns it displays."
    They created a table with more than 256 columns with data and had no problem retrieving the data.

  • We are a creative design studio, we need to use apple mac pro server , so we can make more than a different user to use at the same time doing different activities, on different screens, is it possible?what is the max. no. of users that can work efficient

    we are a creative design studio, we need to use apple mac pro server , so we can make more than a different user to use at the same time doing different activities, on different screens, is it possible?what is the max. no. of users that can work efficient.
    Appreciate your support and if possible , how to do this?

    If you want to work with Mac OS X, you need one computer per simultaneous user.
    What you are describing, " Multiple simultaneous logins to a single computer" is not avialable on a regular Mac of any description, unless you decide to use Unix tools instead of Mac OS X.
    Server will happily store files for many, many users and provide them to multiple (up to hundreds) of computers at "near hard Drive" speeds over Gigabit Ethernet. It can make the File Sharing part easy.

  • TS1503 what is the maximum number of pictures I can store and keep on my iPhone 3G?

    What is the maximum number of pictures I can store (and keep indefinitely) on my iPhone 3GS (8GB)?

    It is a balancing act between your photos and everything else you have on the device (apps, mail, messages, etc.), so there is no specific "number" we can give you. Just keep track of your available memory, and make sure you back up your photos regularly so if you reach the maximum memory capacity, you can delete the oldest ones without worrying that they are not saved somewhere else:
    IMPORTING PHOTOS - WINDOWS/MAC
    Cheers,
    GB

  • What is the maximum number of users that can be simultaneously connected to a shared drive on an Airport Extreme

    What is the maximum number of users that can be simultaneously connected to a shared drive on an Airport Extreme?

    50
    I haven't tried this, but imagine that things are going to be quite slow.

  • What is the max number of bits a boolean array can have?

    Hello,
       What is the maximum number of bit that a boolean array can have?
    Regards,
      Kaspar
    Regards,
    Kaspar

    There is no real size limit. (except for the natural limits of arrays because the size is a 32bit integer, etc.)
    ... of course if you ever plan to convert it back to an integer using "boolean array to number", you better stay below 64 bits.
    Can you explain what you want to do in a bit more detail?
    Message Edited by altenbach on 05-23-2007 02:51 PM
    LabVIEW Champion . Do more with less code and in less time .

  • What is the max size of HDD I can use in my dc7600 CMT

    I am using an HP dc7600 CMT which is working fine after upgrading to a Samsung 128GB SSD, Intel Pentium D 3.4 GHz, 4GB RAM, and an AMD Radeon HD 6450. I am running Win 8.1 Pro x64, with the most recent upgrade, and have absolutely no problems. I now want to add a second internal HDD, and wonder what is the max size  I can go to. Can I go to 2TB, or am I limited to a lower figure? 1TB? 500GB? 250GB?
    Will be glad for some help here, especially if it has been actually tried in practice.
    Thanks in advance.
    Best regards
    This question was solved.
    View Solution.

    You're very welcome.
    Yes, they are very nice machines. 
    What a jump in performance when I swapped out the Pentium 4 620 mine had, for the PD 945, and tossed in 4 GB of memory.
    That box will also run the Radeon HD 6570 with no problem too, which is what I put in mine.
    The downside of that model is that there are no settings for ahci or raid.
    I own or have owned every CMT since the d510 with the exception of the dc7900.
    My main PC is now the 8200 Elite CMT which I installed W8.1 on.
    It has an i7-2600 processor and 32 GB of memory, 1 TB SATA III hard drive.
    I threw in a Radeon HD 6670 in that one.
    Best Regards,
    Paul

  • What is the maximum number of images that can be imported into flash?

    I am not able to import images more than 47 or 48. What is the max. images imported?
    As the images are sequence images and I need that to use for interactivity for rotation with Action script. So cudn't import as a swf either.
    Please do let me know.
    Thanks in advance.

    You can load the image files into your movie's Library during authoring, or, you can import the image files into your movie at runtime. Either way, your're still using the same memory.
    If your movie is designed so that the user will only ever use some of the images, then it may be better to load the files that the user selects at runtime.
    In either case, you should optimize the images that you use as much as possible so that you are using the smallest possible file size and still keep the greatest image quality possible.

Maybe you are looking for