数据库中的空值将占用多少内存? [英] How much memory will be occupied by a null value in a DB?
本文介绍了数据库中的空值将占用多少内存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道空值在数据库中会占用多少内存,任何人都可以清楚地回答吗?
I was wondering how much memory does a null value occupy in a database can anyone answer clearly?
推荐答案
要占用多少空间,取决于该列定义为什么以及所使用的存储引擎.某些数据类型占用固定数量的空间,而与存储的数据无关.声明一个列接受NULL会占用很小的空间.有关详细信息,请参见手册中的一般性讨论以及有关每个存储引擎的文档中的更多内容.
How much space it takes up depends on what the column is defined to be and on the storage engine being used. Some data types take a fixed amount of space regardless of the data stored. There is a small space penalty for declaring a column to accept NULL. Details can be found in this general discussion in the manual and more in the docs about each storage engine.
这篇关于数据库中的空值将占用多少内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文