【问题标题】:Working with scientific notation in Netezza在 Netezza 中使用科学记数法
【发布时间】:2018-03-01 19:25:10
【问题描述】:

我有一个表格,其中包含科学计数法(字符串)的数据。我怎样才能使它在 Netezza 中成为可用的数字(不是字符串)?

select * from 
(
select '1.4545615464654E-14' as text_column
union 
select '1.7891561464654E-14' 
) foo

【问题讨论】:

    标签: sql netezza scientific-notation


    【解决方案1】:

    事实证明,您实际上可以转换这些字符串:

    select cast(foo.text_column as numeric(15,15) )
    from 
    (
    select '1.4545615464654E-14' as text_column
    union 
    select '1.7891561464654E-14' 
    ) foo
    

    【讨论】:

      猜你喜欢
      • 2013-04-27
      • 1970-01-01
      • 1970-01-01
      • 2019-10-24
      • 2022-01-05
      • 1970-01-01
      • 1970-01-01
      • 2012-01-05
      • 2017-04-05
      相关资源
      最近更新 更多