5 Replies Latest reply on Jul 21, 2020 6:55 AM by anup13

    Strange results with single line comment

    anup13

      Using SQL developer 20.2 version (happens in all other older versions also), getting strange results with below statement. Any explanation?

       

      copy below statement as it as.. (line break after '--')

       

      --result "-2"

      select --

      2

      from dual;

      ---------------------------

      --result = '3 -7'

      select sum(1+2),--

             sum(3+4)from

             dual;