今天一不小心在sql中写出以下脚本 select defaultPositionId from TableName where UserId=1100528 and defaultPositionId =null 执行之后大惊怎么没有结果,使用select * from tableName 该列确实为null怎么查补出来难道自己人品问题于是自己又写了以下判断
if(null=null) BEgin print 'fff' end else begin print 'gggg' end www.atcpu.com 输出结果如下: