From: a <372660931@qq.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: How can I retrieve double or int data type for libpq
Date: Wed, 13 Jun 2018 11:08:33 +0800
Message-ID: <tencent_70C980697DC61B1F0AA54018@qq.com> (raw)
Hi
I wanna use C library to connect pgsql server and I got 2 questions:
1, If I can fetch a row's data instead of using PQgetvalue?
2, PQgetvalue will return all data as text, I would have to convert them into the relative data type, is there a way of getting data by its original format?
Thanks so much!
Shore
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: 372660931@qq.com
Subject: Re: How can I retrieve double or int data type for libpq
In-Reply-To: <tencent_70C980697DC61B1F0AA54018@qq.com>
References: <tencent_70C980697DC61B1F0AA54018@qq.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox