钱栏的大小 [英] The size of a money column

查看:82
本文介绍了钱栏的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在一个表中创建了一个索引,该表在包含列中有一个money列。不知何故SSMS显示列的大小是19.它应该是8吗?

I created an index on a table which has a money column in include columns. Somehow SSMS shows that the size of the column is 19. Should it be 8?

谢谢,

如果这篇文章对你有所帮助,请记得留下答案。

Remember to mark as an answer if this post has helped you.

推荐答案

您可能会考虑货币数据类型的存储空间大小,即8个字节。

钱和小钱(Transact-SQL )

我相信SSMS中显示的是实际上货币数据类型的精确度

I believe what is displayed in SSMS is the actually the precision, of money data type.

参考:

货币和小数点之间的区别是什么?

使用MONEY数据类型的有趣观察

HTH,


这篇关于钱栏的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆