我有一张带有科学记数法的数据表(字符串)。如何在Netezza(不是字符串)中将其设为可用的数字?
select * from
(
select '1.4545615464654E-14' as text_column
union
select '1.7891561464654E-14'
) foo
答案 0 :(得分:2)
事实证明你可以实际投射这些字符串:
select cast(foo.text_column as numeric(15,15) )
from
(
select '1.4545615464654E-14' as text_column
union
select '1.7891561464654E-14'
) foo