数据库表有一个表 的字段为空的怎么查询
select pn.pay_Notice_Id,c.client_Shortcut,con.contract_Name,pn.notice_Date,u.user_Truename,pn.father_Pay_Notice_Id,pn.receipt_Date
from Pay_Notice pn,Con_Client_Emp cce,Client c,[User] u,Contract con
where cce.cce_Id=pn.cce_Id and
cce.customer_Service_Id=8 and pn.receipt_Flag=2
and c.client_Id=cce.client_Id and con.contract_Id=pn.contract_Id
and u.user_Id=cce.customer_Service_Id
and ( pn.receipt_Remind !=1 or pn.receipt_Remind is null )
order by pn.pay_Notice_Id desc
这个contract_Name字段 有的为空 怎么把它查询出来
[解决办法]
and contract_Name is null
[解决办法]
where isnull(contract_Name,'')= ''