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 > Using COLLATE or CHARACTER SET with db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-09-07, 02:22
desmondtanck desmondtanck is offline
Registered User
 
Join Date: Apr 2007
Posts: 23
Using COLLATE or CHARACTER SET with db2

I'm using MySQL database for my system current,
now i want to move it to DB2

when i create tables,
i usually put..like example:
create table account(
username varchar(50) character set latin1 default NULL,
password varchar(50) collate latin1_general_cs default NULL
)

something like that, but it doesnt seems to work at db2
do anyone knows how to convert those statement into db2 format?

i've read some articles about CCSID for db2, but it doesnt seems to work.

thanks
Reply With Quote
  #2 (permalink)  
Old 04-09-07, 03:25
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
collating sequence is defined with create database
you can not specify this for a table
the table is created in the character set of the client. This is for translate purpose if the database is a different charset, so data is returned correctly to the client.
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 04-10-07, 15:29
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Just throwing something in: as soon as you start unioning data from various tables and also throw in constants or data from external sources, you will quickly run into problems with column-specific collations.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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