简体   繁体   English

列值在 SQL Server 中作为 Excel 中的指数出现

[英]Column values Coming as Exponent in Excel from SQL Server

I was working on SQL Server 14, one of the column had relatively huge value.我正在研究 SQL Server 14,其中一列具有相对巨大的价值。 When I copied the data from SQL Server and posted it in Excel, the value got changed to Exponent power.当我从 SQL Server 复制数据并将其发布到 Excel 中时,该值已更改为指数幂。 I don't want that, I want the original value as it is in excel.我不想要那个,我想要原始值,因为它在 excel 中。 What needs to be done in the query?在查询中需要做什么? PS: The column is of type Varchar and I cannot change the structure of the table. PS:该列的类型为 Varchar,我无法更改表的结构。 Thanks in Advance.提前致谢。

Just format the excel cell to text:只需将excel单元格格式化为文本:

在此处输入图片说明

在此处输入图片说明

You can see on the picture above same value pasted in cell formatted as general and in a cell formatted as Text .您可以在上图中看到粘贴在格式为general的单元格和格式为Text的单元格中的相同值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM