Re: Bulk updates/inserts

Поиск
Список
Период
Сортировка
От Shelby Cain
Тема Re: Bulk updates/inserts
Дата
Msg-id 20040415042342.78626.qmail@web41608.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: Bulk updates/inserts  (Christoph Haller <ch@rodos.fzk.de>)
Список pgsql-interfaces
--- Christoph Haller <ch@rodos.fzk.de> wrote:
> 
> There is a way to use COPY programmatically via
> libpq: 
> 
> 
> PQexec("COPY xxx FROM stdin");
> for (...)
> {
>     sprintf(buf, "%d\t%d\t...\n",
>             values[0], values[1], ... values[n]);
>     PQputline(conn, buf);
> }
> PQputline(conn, "\\.\n");
> PQendcopy(conn);
> 
> Regards, Christoph 
> 

Excellent.  That'll help reduce my load times.  Thanks
for the help.

Regards,

Shelby Cain

    
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html


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

Предыдущее
От: Christoph Haller
Дата:
Сообщение: Re: Bulk updates/inserts
Следующее
От: "brian plummer"
Дата:
Сообщение: PostgreSQL: libpq, win32 build