|
|
|
|
|
|
| Author |
Message |
Marc Heravi *nix forums beginner
Joined: 04 Feb 2005
Posts: 1
|
Posted: Fri Feb 04, 2005 8:50 am Post subject:
DB2 numerical data type on HOST instead of bigint
|
|
|
Hello NG,
for overflow reasons on numerical accumulation
of an int column during SELECTion i have to
change the data type of a column from "int"
to "bigint".
However that doesn't apply to the HOST based DB2,
the customer's administrator told me there is no
"bigint" data type. So which data type would you
propose as an alternative to "bigint" on host
preventing the overflow when SUMming during
SELECTion?
(column contains milliseconds of processing,
user reports can contain up to years of
processing accumulated)
Thank you for each reply,
Marc. |
|
| Back to top |
|
 |
Mark Yudkin *nix forums Guru Wannabe
Joined: 29 May 2005
Posts: 117
|
Posted: Fri Feb 04, 2005 12:37 pm Post subject:
Re: DB2 numerical data type on HOST instead of bigint
|
|
|
DECIMAL
"Marc Heravi" <marcsimone@arcor.de> wrote in message
news:42034580$0$822$9b4e6d93@newsread2.arcor-online.net...
| Quote: | Hello NG,
for overflow reasons on numerical accumulation
of an int column during SELECTion i have to
change the data type of a column from "int"
to "bigint".
However that doesn't apply to the HOST based DB2,
the customer's administrator told me there is no
"bigint" data type. So which data type would you
propose as an alternative to "bigint" on host
preventing the overflow when SUMming during
SELECTion?
(column contains milliseconds of processing,
user reports can contain up to years of
processing accumulated)
Thank you for each reply,
Marc.
|
|
|
| Back to top |
|
 |
Thiru *nix forums addict
Joined: 20 May 2005
Posts: 80
|
Posted: Mon Feb 07, 2005 3:41 am Post subject:
Re: DB2 numerical data type on HOST instead of bigint
|
|
|
Hi,
You can try either of DOUBLE(8 bytes), DOUBLE PRECISION(8 bytes),
DECIMAL(4 bytes), DEC(4 bytes) or NUMERIC(4 bytes).
Cheers,
Thiru
WantedToBeDBA@gmail.com |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 2:54 am | All times are GMT
|
|
Libros arquitectura | Bankruptcy | Online Loans | Loans | Car salvage
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|