Search Postgresql Archives

Re: why does documentation use "END CASE" when that doesn't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



plpgsql case use end case,while sql case use end,they are different language

jov

在 2014-2-26 上午8:32,"Susan Cassidy" <susan.cassidy@xxxxxxxxxxxxxxxxxxxxxxxx>写道:
The documentation says:
CASE search-_expression_
    WHEN _expression_ [, _expression_ [ ... ]] THEN
      statements
  [ WHEN _expression_ [, _expression_ [ ... ]] THEN
      statements
    ... ]
  [ ELSE
      statements ]
END CASE;

And it repeats the "END CASE" phrase in other examples.  

However, that doesn't work. You have to just use "END".

Shouldn't the documentation be fixed?
Susan



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux