Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> <> '' in PL/SQL
I am writing some simple PL/SQL , but I cannot intepret the result:
set serveroutput on
declare
abc varchar2(1);
begin
abc := 'a';
if abc <> '' then
dbms_output.put_line(abc||' <> empty'); else
dbms_output.put_line(abc||' = empty');
end if;
end;
The Result
ServerOutput ON
--
![]() |
![]() |