If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > 460: Statement length exceeds maximum.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-07, 16:31
Err Err is offline
Registered User
 
Join Date: Jan 2007
Posts: 8
460: Statement length exceeds maximum.

I've been getting this error for my excessively long SQL statements.

Does anyone know what the row limit is? Does it vary from system to system?

Since I am (mostly) making criteria statements on every line, could I shorten the number of rows by putting more than one criteria statement per line?

That is

Code:
select blah.colors from blah
where colors are in ("blue",
"red",
"yellow",
"purple",
"green",
"orange",
"muave",
"tangerine")
to :

Code:
select blah.colors from blah
where colors are in ("blue",
"red",
"yellow", "purple",
"green", "orange",
"muave", "tangerine")
(You will have to imagine that my list is very long)

Will this work or Must I break it up?
Reply With Quote
  #2 (permalink)  
Old 01-17-07, 16:56
Err Err is offline
Registered User
 
Join Date: Jan 2007
Posts: 8
Well, I can't increase the number of lines by doubling them on the line. The same error occurs.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On