sql里的null和空的区别

null表示为未知,未定义;

空表示为空白,或者0;

sql查询,排序时null在‘’的前面;

定义字段为not null,写为空可以写入;

null不可以用来比较,只能用is null判断;

原文地址:https://www.cnblogs.com/zuopy/p/7718405.html