From: | Enrique Rodriguez Lazaro <enrique(at)xpress(dot)es> |
---|---|
To: | PSQL ADMIN <pgsql-admin(at)postgreSQL(dot)org> |
Subject: | Re: [ADMIN] Ghost insert |
Date: | 1999-12-23 10:27:01 |
Message-ID: | 3861F8F5.E6191703@xpress.es |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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.
From | Date | Subject | |
---|---|---|---|
Next Message | SHARMA, Vivek, GNW IT | 1999-12-23 12:02:26 | RE: JDBC: Getting started with Serialization |
Previous Message | Enrique Rodriguez Lazaro | 1999-12-23 09:03:12 | Ghost insert |