康叔的AI全栈工坊
归档
游戏小站
关于
切换模式
返回顶部
首页
今日新鲜事
我的项目
成长二三事
玩玩游戏
康叔的AI全栈工坊
首页
今日新鲜事
我的项目
成长二三事
玩玩游戏
归档
游戏小站
关于
关于mysql的null
技术
·
2024-03-01
康叔的AI全栈工坊
null不能与其他值进行判断,判断null与其他值相等或者不等,都只会返回null
排序的字段中有null时,null会小于所有有值的数据
用count()统计行数时,如果指定某列,且该列中有null值,那么null值不会记录进count
比如:
distinct 或者 分组函数中,会把null值归为同一类
如果一个字段设置了唯一索引,那么null由于都不相等,所以可以出现多次,而且null值并不走索引,所以唯一索引要加上not null
null值占空间
mysql
取消回复
提交评论
康叔的AI全栈工坊
Code for Life, AI for Future
全栈开发
AIGC
技术管理
热门文章
25年要做的事
【20251216AI日报】Korean AI startup Motif reveals 4 big lessons for training enterprise LLMs
【20251218AI日报】Gemini 3 Flash arrives with reduced costs and latency — a powerful combo for enterprises
【20251217AI日报】Zencoder drops Zenflow, a free AI orchestration tool that pits Claude against OpenAI’s models to catch coding errors
【20251219AI日报】Palona goes vertical, launching Vision, Workflow features: 4 key lessons for AI builders
【20251215AI日报】Build vs buy is dead — AI just killed it
【20251214AI日报】Why most enterprise AI coding pilots underperform (Hint: It's not the model)
最新评论
插座: 每天的AI简报太有用了! 帮助我快速看完今天的热门,感谢博主!
爱吃🍌的🐱: 说的很有思考,关注博主继续有思考的产出。
热门标签
mysql
游戏
ai
AIGC
架构
孙子兵法
感悟
进步
在线游戏
在线小游戏
益智
创新
关于站长
天津
津ICP备2023002696号-1
Theme
Jasmine
by
Kent Liao