相关疑难解决方法(0)

How much size "Null" value takes in SQL Server

I have a large table with say 10 columns. 4 of them remains null most of the times. I have a query that does null value takes any size or no size in bytes. I read few articles some of them are saying :

http://www.sql-server-citation.com/2009/12/common-mistakes-in-sql-server-part-4.html

There is a misconception that if we have the NULL values in a table it doesn't occupy storage space. The fact is, a NULL value occupies space – 2 bytes

SQL:使用NULL值与默认值

NULL在数据库中的值是一个系统值占用一个字节存储的并指示值不存在,而不是一个空间或零或任何其他的默认值.

你可以指导我关于空值的大小.

t-sql sql-server null sql-server-2005

113
推荐指数
3
解决办法
6万
查看次数

标签 统计

null ×1

sql-server ×1

sql-server-2005 ×1

t-sql ×1