2
如何选择插入为NULL的int数据类型字段(奖金)?在sql server中使用空(NULL)int数据类型
尝试了以下操作,但是没有打印任何东西,虽然有一个有效的条目。
select e_name from employee, payroll where datepart(year,hire_date)=2005 and employee.e#=payroll.e# and bonus=null
另外,如果我想再添加一年说2007年与2005年检查使用或,是什么查询呢?如果不 null是bonus is not null
...
and bonus is null
FYI的语法来进行测试:
非常感谢.. :) –