Re: [ADMIN] Ghost insert
Re: [ADMIN] Ghost insert
От:
Enrique Rodriguez Lazaro <enrique@xpress.es>
Дата:
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.