任何数据库表中的空字段都占用内存吗? [英] Does empty field in any database table takes a memory?

查看:750
本文介绍了任何数据库表中的空字段都占用内存吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

数据库表中的空字段是否占用辅助存储上的内存.


我必须根据另一个称为IsRight的字段在表中留下一些称为test的空字段.

如果IsRight字段为"false",则单行中的下4个字段需要保留为空白.


所以任何人都可以告诉我,如果我将一个字段留空,那么它就不会占用任何空间.

Does empty field in database table takes a memory on secondary storage.


I have to left some empty field in table called test depending upon another field called IsRight.

If IsRight field is ''false'' then next 4 fields in single row need to kept blank.


So can any one tell me, If i left a fields blank then it doesnt take any space.

推荐答案

好吧,在创建表时,您需要为每个表定义空间字段/列.因此,基本上在每一行插入中都会为数据创建一个占位符,并且可以填充它或将其保留为空,因此已分配了空间.

因此,空字段将保留空间,因为它是占位符.
Well, while creating a table you define the space needed for each field/column. So, bascially on every row insertion the placeholder is created for the data and one can fill it or leave it empty, space has been allocated.

Thus, empty fields will hold space as it''s the placeholder that are responsible for it.


这篇关于任何数据库表中的空字段都占用内存吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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