Evening all,
There is indeed a hard coded limit of 1,000 literals, note that word, in an IN clause.
There is not a limit if you don't use literals.
If you can code something like:
WHERE X IN (SELECT Y FROM TABLE_Y WHERE . . .)
Oracle no longer limits you to 1,000.
I am not aware of any limits of 5,000 (total) literals in all the IN clauses of a statement though.
Maybe you are hitting a limit on the number of characters allowed, by Oracle, in a single statement.
I doubt that Toad is limiting you, nor do I think your company would be either.
HTH.
Norm. [TeamT]
Apologies for top posting, brevity and/or autocorrect mis-corrections, I am sending this from my Galaxy tablet, from the bath!
On March 13, 2014 3:26:24 PM GMT, orange99 bounce-orange99@toadworld.com wrote:
RE: Toad for Oracle Base Edition
Reply by orange99
Bert,
I have done that in the past.
SELECT a., b.
FROM table1 a, table2 b
WHERE a.type=b.type
AND ((A.issuer_id_c = '62931Z' and A.issue_alpha_c IN ('NA','NB','NC','ND','NE', ... up to 1000)
OR (A.issuer_id_c = '145258' and A.issue_alpha_c IN ('NA','NB','NC','ND','NE')
OR (A.issuer_id_c = '685774' and A.issue_alpha_c IN ('NA','NB','NC','ND','NE')
OR (A.issuer_id_c = '469807' and A.issue_alpha_c IN ('NA','NB','NC','ND','NE')
OR (A.issuer_id_c = '778910' and A.issue_alpha_c IN ('NA','NB','NC','ND','NE'))
And it only lets me do 5 IN statements (each with up to 1000 id's) for a total of 5,000. Is this a Toad limit or is my company's system preventing me from doing this? I would like to be able to query up to 20k.
Thanks for the help.
To reply, please reply-all to this email.
Stop receiving emails on this subject.
Or Unsubscribe from Toad for Oracle - General notifications altogether.
Toad for Oracle - Discussion Forum
Flag this post as spam/abuse.

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.