DB29 for Linux,UNIX,and WINDOWS - section 5(DB2 Object)

Data type:

1.Numeric: integer/decimal/floating

2. String:char/varchar/CLOB

3.Datetime:timestamp.

 

Decimal (p,s)
MIN_DEC_DIV_3 is set as no. then 31-p+s-s'

被除数的精度(precision)为p,小数位(scale)为s;除数的精度为p',小数位位s'。


被除数C1为decimal(31,2)而除数为2.51,也就是p=31,s=2,s'=2。所以结果的小数点位数为 31-31+2-2=0,这样得到结果为1.。


被除数C4为decimal(28,2)而除数为2.51,也就是p=28,s=2,s'=2。所以结果的小数点位数为 31-28+2-2=3,这样得到结果为1.235。

 

 

Special value:

1.Null is unknow value. All operations with NUll is Null.

2.Identity Column: generated alwasys as indetity( start with 1, increment by 10)

 

One table can have 1012 columns. 4K-2G,8K-4G,16K-8G,32K-16TB

 

Create table  activate not logged initially

 

Compression:

It  can reduce I/O and add the hit rate in memory.

1. Value compression. delete Null value and default value.

2. Row compression. It is used thru Dictionary.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值