data inserting in embedded C/libpq

Поиск
Список
Период
Сортировка
От planx plnetx
Тема data inserting in embedded C/libpq
Дата
Msg-id 20000605225509.5283.qmail@hotmail.com
обсуждение исходный текст
Список pgsql-general
How I can insert data in Postgres with embedded sql?
May I can build a string like

char *query;
sprintf
(query,"INSERT INTO %s (%s) (%s) VALUES (%s)",table,field,value);

and process with PQexec(conn, query)?
my doubts is that PQexec is for queries and it must return a string...

how I can do in other ways?
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: 32KB Tuples
Следующее
От: Nissim
Дата:
Сообщение: Anon CVS