PostgreSQL/Postgre SQL/Decode

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

Decode binary string from string previously encoded with encode

   <source lang="sql">

postgres=# -- decode(string text, type text) postgres=# -- Decode binary string from string previously encoded with encode. postgres=# -- Parameter type is same as in encode. postgres=# select decode("123\\000456", "escape") postgres-# postgres-# ;

  decode

123\000456

(1 row) postgres=#

      </source>