niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » IBM DB2
DB2 numerical data type on HOST instead of bigint
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Marc Heravi
*nix forums beginner


Joined: 04 Feb 2005
Posts: 1

PostPosted: Fri Feb 04, 2005 8:50 am    Post subject: DB2 numerical data type on HOST instead of bigint Reply with 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
Mark Yudkin
*nix forums Guru Wannabe


Joined: 29 May 2005
Posts: 117

PostPosted: Fri Feb 04, 2005 12:37 pm    Post subject: Re: DB2 numerical data type on HOST instead of bigint Reply with quote

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

PostPosted: Mon Feb 07, 2005 3:41 am    Post subject: Re: DB2 numerical data type on HOST instead of bigint Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 2:54 am | All times are GMT
navigation Forum index » Databases » IBM DB2
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Bug#379103: ITP: complearn-gui -- 3D drag-and-drop interf... Rudi Cilibrasi devel 0 Fri Jul 21, 2006 11:00 am
No new posts Bug#379087: ITP: libcomplearn -- data-compression based i... Rudi Cilibrasi devel 0 Fri Jul 21, 2006 7:40 am
No new posts class that have a member of type that's derived from it Mirko Puhic C++ 8 Fri Jul 21, 2006 1:53 am
No new posts How do I render JPEG Data stored in char* buffer? On the Sparrow C++ 2 Thu Jul 20, 2006 8:44 pm
No new posts How do I determine if a virtual hostname is actually on m... Brett shell 6 Thu Jul 20, 2006 6:58 pm

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
[ Time: 0.1522s ][ Queries: 16 (0.0722s) ][ GZIP on - Debug on ]