問(wèn)題描述
我必須將表中當(dāng)前為 Float 的列之一更改為 Varchar,但是當(dāng)我使用 alter 命令時(shí),它會(huì)以科學(xué)記數(shù)法存儲(chǔ)一些較長(zhǎng)的數(shù)字.
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?
如果沒(méi)有,有沒(méi)有辦法在以后輕松更新表格以將科學(xué)記數(shù)法存儲(chǔ)為正常整數(shù)?
If not, is there a way to easily update the table later to store the scientific notation as normal integer?
謝謝
推薦答案
請(qǐng)查看鏈接
在沒(méi)有科學(xué)的情況下在 SQL Server 中將浮點(diǎn)數(shù)轉(zhuǎn)換為 varchar符號(hào)
您可以將浮點(diǎn)數(shù)轉(zhuǎn)換為 varchar(max)
You can cast the float to varchar(max)
如何在 SQL Server 中將 float 轉(zhuǎn)換為 varchar一個(gè)>
這篇關(guān)于SQL Server 2008 - 將列從 Float 更改為 Varchar 生成科學(xué)記數(shù)法的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!