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 > Thai Character As Primary Key Search Problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-29-03, 23:22
gigsvoo gigsvoo is offline
Registered User
 
Join Date: Sep 2003
Posts: 3
Thai Character As Primary Key Search Problem

Hello all,

I had a table, where the primary key field is a VARCHAR that stores Thai character. Now the problem arrised when I tried to do a SELECT operation using Thai character as the primary key. Sample SELECT had changed to question marks (?):

SELECT * FROM LOS.BUS_TYPE WHERE CODE = '2?'

Any help please.

Thanks

Neo
Reply With Quote
  #2 (permalink)  
Old 10-10-03, 23:45
sherman sherman is offline
Registered User
 
Join Date: Oct 2003
Posts: 7
DB2 Thai Character problems

Hi Neo,

Can you tell me what is your database codeset and collate option when the database is created? TIS620-1 and NLSCHAR?

Can you specifiy the db2 version? "db2level" will tell you the level.

Sherman Lau
Reply With Quote
  #3 (permalink)  
Old 10-13-03, 00:58
gigsvoo gigsvoo is offline
Registered User
 
Join Date: Sep 2003
Posts: 3
Talking

Yeah, the CODESET thing is correct. My DB2 is a basic level of :

DB21085I Instance "DB2" uses DB2 code release "SQL07025" with level identifier

"03060105" and informational tokens "DB2 v7.1.0.68", "n020616" and "WR21311".

Any hope?
Reply With Quote
  #4 (permalink)  
Old 10-14-03, 09:35
sherman sherman is offline
Registered User
 
Join Date: Oct 2003
Posts: 7
Thai TIS620-1 NLSCHAR collation

Try upgrade from v7 fp7 to v7 fp9 or newer. There is a APAR, IY39449, for the TIS620-1 NLSCHAR collation. The APAR was fixed in v7 fp9.

ftp://ftp.software.ibm.com/ps/produc.../APARLIST.html shows the list of APAR in v7 fp9:
IY39449 CREATING INDEXES WITH NLS COLLATION USING THAI CODE SET TIS620-1 MAY CAUSE INDEX KEYS TO BE OUT OF ORDER

Sherman Lau
Reply With Quote
  #5 (permalink)  
Old 10-14-03, 22:19
gigsvoo gigsvoo is offline
Registered User
 
Join Date: Sep 2003
Posts: 3
Thanks for the information, as discussed with my colleuge, after patched the DB with the FP9, another issue with the IE to set the default language to Thai. This is more to development issues.

Thanks alot!
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