Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to convert Integer to SmallInt

Status
Not open for further replies.

jafsaqusa

Programmer
Feb 27, 2010
1
US
A small Int occupies twice less storage space than an Integer occupies. So, i'm thinking of converting a Integer column of 4 bytes in length to a Small Integer type. Is there any way to alter the data-type from Integer to SmallInt in DB2? If yes, will there be a considerable savings as I'm thinking?
 
If yes, will there be a considerable savings as I'm thinking?"

If an average row contains 2k bytes, and this change will save 2 bytes per row, the savings will be minimal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top