That's DBMS-specific. I don't believe that the ANSI-SQL standard (for which this is the forum) defines limits like that.
Where such limits do exist its probably tied to some decision made by a programmer deep in the internals of the DBMS code. Why? Probably because he (or she) could.
Thanks for the answer. I actually got some pretty good ones from a DBA I know.
Sybase allows a maximum of sixteen (16) sub-queries.
MS SQL server allows two hundred fifty three (253) sub-queries.
Oracle has no upper limit though I'm sure there must be a functional limit at some point.
He did not know about MySQL or any of the lesser packages.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.