Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Many ANDs in Sybase request

Status
Not open for further replies.

Palmero

Technical User
Mar 31, 2001
53
FR
Hi all,
I am searching information about the following error message on Sybase 11.5:
Number : 404
Severity : 19
Text : Too many ANDs or ORs in expression (limit %d per expression level). Try splitting query or limiting ANDs and ORs.
Note that I have many ANDs in my request.

Thanks in advance for your help.
Palmero.
 
hello...

here is what sybase recommends...

Explanation
This error occurs when you use more than 251 and or or expressions in a query.

This error also occurs if you exceed the limit of 251 values in a where in clause. For example:

1> select * from old_table
2> where old_column in (1,2,3...,253,254,...)
3> go

Write the query so that the limit is not exceeded. Often, this requires that you split the query.


q.
 
That is correct it has got to do with the limitation of the sybase client buffer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top