文章列表

372 字 1 分钟

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. # Quick Start # Create a new post 1$ hexo new "My New Post" More info: Writing # Run...
1.9k 字 2 分钟

平时我们在使用 MySQL 的时候,对于 MySQL 中的 NULL 值和空值区别不能很好的理解。注意到 NULL 值是未知的,且占用空间,不走索引,DBA 建议建表的时候最好设置字段是 NOT NULL 来避免这种低效率的事情的发生。 # 问题 1: 首先,我们需要搞清楚 "空值" 和 "NULL" 的概念 1:空值('')是不占用空间的 2: MySQL中的NULL其实是占用空间的。官方文档说明: “NULL columns require additional space in the row to...