PostgreSQL/Postgre SQL/plpgsql

Материал из SQL эксперт
Перейти к: навигация, поиск

plpgsql is case insensitive

   <source lang="sql">

postgres=# CREATE FUNCTION "mixed" () RETURNS integer AS " postgres"# DecLarE postgres"# --assigns 1 to the oNe variable postgres"# oNe IntEgER postgres"#  := 1; postgres"# postgres"# bEGiN postgres"# postgres"# --displays the value of oNe postgres"# ReTUrn oNe; postgres"# eNd; postgres"# " LANGUAGE "plpgsql"; CREATE FUNCTION postgres=# postgres=# select mixed();

mixed

    1

(1 row) postgres=#

      </source>