我们知道SQL SERVER建立链接服务器(Linked Server)可以选择的驱动程序非常多,最近发现使用ODBC 的 Microsoft OLE DB 驱动程序建立的链接服务器(Linked Server), 调用存储过程过程时,参数不能为NULL值. 否则就会报下面错误提示: 对应的英文错误提示为: EXEC xxx.xxx.dbo.Usp_Test NULL,NULL,'ALL' Msg 7213, Level 16, State 1, Line 1 The attempt by th…
1.包含null的表达式都为空 select salary*12+nvl(bonus,0) nvl是虑空函数 2. null值永远!=null select * from emp where bonus=null 得到的结果是0行被选中 正确的写法是 is null 或者 is not null 3.如果集合中含有null,不能使用not in 但是可以使用in 4.null值的排序,在降序中null值是排在最前面的 因为oracle中默认null值是最大 解决的办法 sel…