Re: Help with converting hexadecimal to decimal

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Help with converting hexadecimal to decimal
Дата
Msg-id 200504010233.j312XW415552@candle.pha.pa.us
обсуждение исходный текст
Ответ на Help with converting hexadecimal to decimal  ("Chandra Sekhar Surapaneni" <chandu@positivenetworks.net>)
Ответы Re: Help with converting hexadecimal to decimal
Список pgsql-general
Chandra Sekhar Surapaneni wrote:
> Hi All,
>   Is there a built in function which works exactly the opposite way as
> to_hex().
> I basically want to convert a a hexadecimal to a decimal.

Sure:

    test=> SELECT x'10'::integer;
     int4
    ------
       16
    (1 row)

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-general по дате отправления:

Предыдущее
От: Palle Girgensohn
Дата:
Сообщение: logging prepared queries' arguments?
Следующее
От: George Essig
Дата:
Сообщение: Re: Upgrade data