adwfun Posted September 15, 2006 Share Posted September 15, 2006 I made a Select.....Where... query with over 10 conditions after Where. It returned with a syntax error and I am wondering if there is a maximum conditions allowed.I did that because I setup 5 dropdown menu to let user choose and then submit to get data, and there are 8 tables required in Select....Please kindly advise.Thanks ??? Quote Link to comment Share on other sites More sharing options...
btherl Posted September 15, 2006 Share Posted September 15, 2006 There's no limit (in theory), but huge queries can hit resource limits sometimes. Can you post your query and the error message? Quote Link to comment Share on other sites More sharing options...
ale1981 Posted September 15, 2006 Share Posted September 15, 2006 Try putting the WHERE conditions inside (), like;SELECT * FROM table WHERE (a=1, b=2, c=3, d=4) Quote Link to comment Share on other sites More sharing options...
fenway Posted September 15, 2006 Share Posted September 15, 2006 You can place parentheses, to be sure, but you'll have to use AND / OR, not commas. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.