25-12 空值处理(null值)

--------------------空值处理---------------------
select * from TblStudent

--查询所有年龄是null的同学学习信息
--null值无法使用 = 或 <> 来进行比较
--unknown
--判断null 值必须使用is null 或者 is not null
select * from TblStudent where tsage is null

--查询所有年龄不是null的同学
select * from TblStudent where tsage is not null


--任何值和null进行计算,得到的结果还是null
select 2000+null
原文地址:https://www.cnblogs.com/Strugglinggirl/p/7203619.html