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 > DB2 > what is the maximum length of IN predicate

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-11-03, 20:50
brat4 brat4 is offline
Registered User
 
Join Date: Apr 2003
Location: Singapore
Posts: 59
what is the maximum length of IN predicate

Hi,
I am accessing the database through java and I have a very long parameter value for the IN clause. ( 256 characters)

Select A from B where C IN (a,b,c,d,e,f,g,..........256charaters long)
It always gives me a String data right truncation.

Is tehre anyway i can increase this maximum length?

Database : DB2
Version : 7.2.X

Any info is greatly appreciated

Cheers
brat
Reply With Quote
  #2 (permalink)  
Old 12-11-03, 21:16
sundialsvcs sundialsvcs is offline
Registered User
 
Join Date: Oct 2003
Posts: 706
Unhappy

It's quite common to encounter a 256-character string limit in database products. But before jumping to the conclusion that such a limit exists here I'd take a very, very close look at the actual string which is being presented. A single misplaced quote... etc. Make sure you don't have a '"Doh!" problem.'
__________________
ChimneySweep(R): fast, automatic
table repair at a click of the
mouse! http://www.sundialservices.com
Reply With Quote
  #3 (permalink)  
Old 12-11-03, 23:16
brat4 brat4 is offline
Registered User
 
Join Date: Apr 2003
Location: Singapore
Posts: 59
Thumbs up

Quote:
Originally posted by sundialsvcs
It's quite common to encounter a 256-character string limit in database products. But before jumping to the conclusion that such a limit exists here I'd take a very, very close look at the actual string which is being presented. A single misplaced quote... etc. Make sure you don't have a '"Doh!" problem.'
Dead on target mate.... there was a problem with the string. Thanks a lot..Appreciate it..
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