PostgreSQL/String Functions/chr

Материал из SQL эксперт
Версия от 13:13, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

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>