码迷,mamicode.com
首页 > 其他好文 > 详细

Excel scientific notation issue

时间:2014-12-02 17:03:48      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:blog   http   io   ar   sp   for   on   2014   log   

bubuko.com,布布扣

? ?

This is a known issue, you can find more in internet.

Excel will treat text(can display with number) more than 11 numbers, it will convert to scientific notation display.

It is not an issue now, but if your text content length is more than 15, the issue occurs, it will discard the value and

Set default is zero.

So if your number is 1234567891012345, excel will convert to 1234567891012340 if your display back from scientific notation.

Scenario, we dump table content to csv file, when we open the csv file with excel, we find one column display as scientific notation, this is not what we want.

Another one is , one column we contact some value like 123,125,4566,…, excel take this text as number just like we apply a custom format on number, scientific notation occurs again and some values miss in excel

Solution:

When we dump data from oracle or sqlserver to csv, we should add single quote .

Select ‘‘‘‘ || column from table;

Excel will take this column as text. And not display the single quote before value. It is useful.

Even in the data filter.

? ?

? ?

Excel scientific notation issue

标签:blog   http   io   ar   sp   for   on   2014   log   

原文地址:http://www.cnblogs.com/huaxiaoyao/p/4137891.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!