0

This block

BEGIN
  IF 'foo' = '' THEN
    DBMS_OUTPUT.PUT_LINE('True');
  ELSE
    DBMS_OUTPUT.PUT_LINE('False');
  END IF;
END;

prints "False", as one would expect. But if the comparison is replaced with 'foo' <> '' or 'foo' != '', it still prints "False". Why would that be so? What is the proper way to check whether a string is empty?

Colin P. Hill
  • 422
  • 4
  • 18

0 Answers0