null与''(空字符串) By 小郑咩 in 坑 2018年5月9日 0 Comment 在JavaScript中: null == '' 返回true null === '' 返回false 在Oracle中: null 和 '' 是一个东西 '' 会自动转成 null 在Mysql中: '' 是空字符串 null 是null (为什么觉得这是废话) 在设置字段 not null 的时候依然可以插入 ''
如果文章对你有帮助, 你可以: 请我喝牛奶