null
”是空字符 相当于在银行有账号,不过没钱
null是空 相当于在银行账号都没有
null比较需要用 is null 或者 is not null 判断
null遇见运算符 一律返回null =null 或 !=null 等等一律返回null ,并且效率不高,所以建表时候一般都会有not null default ”;
mysql> select goods_name from goods where goods_name is not null limit 3;+--------------------+| goods_name |+--------------------+| KD876 | | htcN85原装充电器 | | 诺基亚原装5800耳机 | +--------------------+
3 rows in set (0.00 sec)
mysql> select goods_name from goods where goods_name is null ;Empty set (0.00 sec)
null 遇见运算符 一律返回null
粘性表头和列
粘性表头和列
66 查看详情
mysql> select goods_name from goods where goods_name=null ;Empty set (0.00 sec)
mysql> select goods_name from goods where goods_name!=null ;Empty set (0.00 sec)
以上就是mysql null和‘ ’的内容,更多相关内容请关注PHP中文网(www.php.cn)!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/418475.html
微信扫一扫
支付宝扫一扫