本文介紹了SQL Server 2008 - 將列從 Float 更改為 Varchar 生成科學記數法的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
限時送ChatGPT賬號..
我必須將表中當前為 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一個>
這篇關于SQL Server 2008 - 將列從 Float 更改為 Varchar 生成科學記數法的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!