Re: [ADMIN] Ghost insert

Поиск
Список
Период
Сортировка
От Enrique Rodriguez Lazaro
Тема Re: [ADMIN] Ghost insert
Дата
Msg-id 3861F8F5.E6191703@xpress.es
обсуждение исходный текст
Список pgsql-interfaces
SZALAI Karoly wrote:
> 
> On Wed, Dec 22, 1999 at 07:51:28PM +0100, Enrique Rodriguez Lazaro wrote:
> > res1=PQexec(conn,temp_string);
> > tuplas=PQresultStatus(res1);
> so, i think, you have to close the command. my program do this:
> 
> (the REAL contains the line, what i want to copy to the table)
> 
>    PQexec(conn,"copy phone from stdin using delimiters '|'\n");
>    PQputline(conn,REAL);
>    PQputline(conn,"\\.\n");
>    ^^^^^^^^^^^^^^^^^^^^^^^^you need this line (maybe)
> 
> if it's not working, mail me, and i find my old .c programs :-)
> --
> CZW

Thanks for you answer.

Your solution is based on copy command. Isn't posible do it with a
insert command?

I want insert data on my database from a web's form. I think it's better
use the insert command, it is?


Thanks.


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

Предыдущее
От: Enrique Rodriguez Lazaro
Дата:
Сообщение: Ghost insert
Следующее
От: "SHARMA, Vivek, GNW IT"
Дата:
Сообщение: RE: JDBC: Getting started with Serialization