Space used by nulls in database

前端 未结 6 1553
深忆病人
深忆病人 2020-12-03 13:32

If a column is null, does that affect the space used by the column? Is the space used fixed by the column definition? Does this vary from database to database. (I am mainly

6条回答
  •  抹茶落季
    2020-12-03 14:17

    The number of bytes used by the row is smaller if you are using varchar or nvarchar datatypes. This is why you can create a table (but shouldn't) that has more potential bytes than can actually be stored in a record.

提交回复
热议问题