Re:
От | Chris Travers |
---|---|
Тема | Re: |
Дата | |
Msg-id | 003e01c3e6dd$f385a9d0$ea44053d@winxp обсуждение исходный текст |
Ответ на | ("MUKTA" <muktavasudeva@hfcl.com>) |
Список | pgsql-sql |
You can also use PGexecParams() (see the libpq documentation). It can be a little more cumbersome to use, though.
Best Wishes,
Chris Travers
----- Original Message -----From: MUKTASent: Thursday, January 29, 2004 8:08 PMSubject: [SQL]Hi I have an urgent problemI want to insert values into a table using the C syscalls provided by the libpq library, but i find that i can not insert into the table when i use variables instead of values...like so:int a,b,c,d;using the C functionres=PQexecute(Conn,"INSERT into table values(a,b,c,d));....executing above statement with plain integers does fine and inserts them into table..Is there some special way to insert variables rather than plain values? do i have to build functions (in sql) or somehting?help!Thanx
В списке pgsql-sql по дате отправления: