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 > Pb with comma separator in decimal fields

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-23-06, 06:26
cyberioio cyberioio is offline
Registered User
 
Join Date: Oct 2006
Posts: 5
Pb with comma separator in decimal fields

Hi !

I have a problem with the representation of decimal fields.
My System is in English Language, i'm creating a database with the following configuration :
Database territory = FR
Database code page = 819
Database code set = ISO8859-1
Database country/region code = 33
Database collating sequence = UNIQUE

Description of one table :
create table test (field1 decimal(5,3));
insert into test values (83.7);
and when i want to display the result of my insert, i have :
TEST
______
83,7

Can i have dot separator (.) instead of comma separator ( ?
Is it possible ?

Thanks in advance.

Lionel
Reply With Quote
  #2 (permalink)  
Old 10-23-06, 06:44
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
you can try "select char(field1) from test".
Hope this helps,
Grofaty
Reply With Quote
  #3 (permalink)  
Old 10-23-06, 08:33
cyberioio cyberioio is offline
Registered User
 
Join Date: Oct 2006
Posts: 5
OK, thanks
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