-- Created on 2012/11/20 by JWW 
declare
  -- Local variables here
  i  integer := 2;
  j  integer := 2;
  k  varchar2(60);
  op varchar2(45);
begin
  -- Test statements here
  k := '';
  if (i = j and k = '') then
    --能不能输出
    op := 'k = ""有结果';
  else
    op := 'k is null有结果';
  end if;
end;

oracle 不支持 =和!=oracle 不支持 =和!=oracle 不支持 =和!=

k 无论赋值还是不赋值,赋'' 或null ,都是 k is null 才生效,= ,!=无效

 

 


 

相关文章:

  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 1970-01-01
  • 2022-12-23
  • 1970-01-01
  • 2021-09-01
  • 2022-12-23
猜你喜欢
  • 2021-10-11
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2021-09-09
相关资源
相似解决方案