SQL Server 2008 - 将列从 Float 更改为 Varchar 生成科学记数法

我必须将表中当前为 Float 的列之一更改为 Varchar,但是当我使用 alter 命令时,它会以科学记数法存储一些较长的数字.

I am having to change one of the columns in table which currently is Float to Varchar, but when I use alter command, it stores some of the longer numbers in Scientific Notation.

我可以避免这种情况吗?

Can I avoid this?

如果没有,有没有办法在以后轻松更新表格以将科学记数法存储为正常整数?

If not, is there a way to easily update the table later to store the scientific notation as normal integer?

谢谢

推荐答案

请查看链接

在没有科学的情况下在 SQL Server 中将浮点数转换为 varchar符号

您可以将浮点数转换为 varchar(max)

You can cast the float to varchar(max)

如何在 SQL Server 中将 float 转换为 varchar

相关文章