Chinaunix
标题:
postgreSQL中的数值转换(小实验)
[打印本页]
作者:
cike5
时间:
2013-05-30 13:27
标题:
postgreSQL中的数值转换(小实验)
做了个小实验,仅供大家围观:)
select 1/3::float ; 0.333333333333333
select 1/3::float::numeric(7,5) ;0.33333333333333333333
select (1/3::float)::numeric(7,5) ;0.33333
select (1*1.0/3::float);0.333333333333333
select (1*1.0/3)::float;0.333333333333333
select (1*1.0/3)::float::numeric(7,5);0.33333
select (1*1.0/3)::float::numeric(8,
;0.33333333
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2