PostgreSQL/String Functions/chr

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

chr(n): Returns the character whose ascii value corresponds to the number n

   <source lang="sql">

postgres=# -- chr(n): Returns the character whose ascii value corresponds to the number n postgres=# SELECT chr(65), ascii("A");

chr | ascii

+-------
A   |    65

(1 row) postgres=#

      </source>