經安全檢測,此網站為安全網站,請放心前往原始網址!

德瑞克:SQL Server 學習筆記: 認識 decimal 和 numeric:小數位數可能會被截斷

觀察到: 在執行乘、除法運算時,小數位被截斷了。 以乘法與除法來看: 因為結果有效位數大於 38 時,會縮減對應的小數位數,以防止截斷結果的整數部分。 以加法來看: 結果小數位數的長度公式是:max(s1, s2)

sharedderrick.blogspot.tw

網址安全性掃描由 google 提供