返回字段值为空的记录,这句查询语句怎么写。
11011 2003-01-10 03:06:54 表 a 结构如下
付款号 付款项目号 付款日期 付款金额
1 001 1998-02-02 2000
2 001 1998-02-03 1000
3 002 null null
4 003 1998-02-04 1000
现在我要返回付款日期大于1998-02-03的记录和付款金额为空的记录,即返回付款号为2、3、4 的记录,怎么写sql
我的sql为select * from a where 付款日期 > '1998-02-03' or 付款金额 = null
可是,不能返回 付款金额 为空的记录,即记录3.