1、错误判断:变量名<>NUL
如:
select t.rylx,t.* from t_pstu_reginfo t where t.rylx<>null;
因为rylx <> null是一个永假式,即查询结果为空
2、正确判断:变量名 is not null or is NULL
select t.rylx,t.* from t_pstu_reginfo t where t.rylx is not null;
1、错误判断:变量名<>NUL
如:
select t.rylx,t.* from t_pstu_reginfo t where t.rylx<>null;
因为rylx <> null是一个永假式,即查询结果为空
2、正确判断:变量名 is not null or is NULL
select t.rylx,t.* from t_pstu_reginfo t where t.rylx is not null;