查询为空或不为空的字段的方法

 where target.id is not NULL;

 where target.id is  NULL;

原文地址:https://www.cnblogs.com/kaibindirver/p/13032273.html