注意写法是等号,不是双等号,其他的没有错误begin if(1=1) then if(0=0) then dbms_output.put_line('fsdafsd'); end if; end if; end;output: fsdafsd
if(1=1) then if(0=0) then 其他阿布要
你这样写是应该不对,等号只要一个,下面这个我测试过,你可以参考下:IF (1 = 1 AND 0 = 0) SELECT getdate() AS a ELSE SELECT 0 AS a用case when ... then ... else ... end 是这样的:select case when 1=1 and 0=0 then getdate() as a else 0 as a end
1=1和0=0都时永远成立的你那么写可以的
类似if语句的功能,case when你baidu一下他的用法就可以了
if(1=1) thenif(0=0) thena=b+c;end if;end if;