| От | Nelio Alves Pereira Filho |
|---|---|
| Тема | libpq: Char to INT |
| Дата | |
| Msg-id | 3A0ACAE3.D7416B97@ifx.com.br обсуждение исходный текст |
| Ответы |
Re: libpq: Char to INT
|
| Список | pgsql-general |
Hi there.. I want to do a query that returns an integer and then fetch the result as an int. My query is something like that: SELECT 1::int Normally, I would get the result as a char and then convert it to int. Until here, no misteries. However, 'The Programmer's Guide' shows an example where a char pointer is converted to an int pointer, and then it's used normally. I tried that, but the result wasn't correct.. Just to mention, I 'm used to convert char to int with strtol. Thanks in advance. Nelio Pereira IFX Networks
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера