SQL Server2000数据表中如何存储double类型的字段?

如题;
SQL Server2000数据表中只有bit, int 和 float类型的数字字段类型,那么要存储double类型的怎么办?
如果设置为numeric 类型,是不是 int,float ,double等数字类型都可以存储在其中
从数据库获取的时候是不是 用result.getInt();result.getFloat();result.getDouble() 可以从numeric字段中获取不同的数字类型?

decimal[ (p[ , s] )] 和 numeric[ (p[ , s] )]
1 <= p <= 38,0 <= s <= p
即最大是 decimal(38,38),decimal 默认是 decimal(18,0),decimal 和 numeric 是等价的
温馨提示:答案为网友推荐,仅供参考
第1个回答  2019-07-19
decimal[
(p[
,
s]
)]
numeric[
(p[
,
s]
)]
1
<=
p
<=
380
<=
s
<=
p

decimal(38,38)decimal
默认
decimal(18,0)decimal
numeric
等价
相似回答