null

4、null
 
null不能参与算术运算,所以不能使用=null、<> null
    --is null
    select * from fundinfo  where custname is null  --查出字段custname 是null的数据
 
 
    --is not null
    select * from fundinfo  where custname is  not null  --查出字段custname  不是null的数据
 
    --null和非空的字段 + - × 的结果还是null
    select custid+custname "合并结果" from customer  where custname is null ---结果还是null

 

posted on 2021-03-13 21:41  jesse_zhao  阅读(130)  评论(0)    收藏  举报

导航